! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Warning about gdk_window_get_origin
Status:
RESOLVED: FIXED
Product:
Xfce4-notifyd
Component:
general

Comments

Description joksik83 2017-10-19 08:14:41 CEST
hi, yesterday i install new notifyd 0.4.0 and today i see in log`s that i have this error:

dbus-daemon
Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
xfce4-notifyd
gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed


systemctl --user status xfce4-notifyd

● xfce4-notifyd.service - XFCE notifications service
   Loaded: loaded (/usr/local/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
   Active: active (running) since Thu 2017-10-19 07:56:58 CEST; 14min ago
 Main PID: 1261 (xfce4-notifyd)
   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service
           └─1261 /usr/local/lib/xfce4/notifyd/xfce4-notifyd

paź 19 07:56:58 wios systemd[1128]: Starting XFCE notifications service...
paź 19 07:56:58 wios systemd[1128]: Started XFCE notifications service.
paź 19 07:57:06 wios xfce4-notifyd[1261]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
paź 19 07:57:06 wios xfce4-notifyd[1261]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
paź 19 07:58:28 wios xfce4-notifyd[1261]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
Comment 1 Simon Steinbeiss editbugs 2017-10-22 16:43:06 CEST
Indeed, I can reproduce that. Not sure where it comes from yet, but I'll take a look.
Comment 2 Simon Steinbeiss editbugs 2017-10-26 09:37:22 CEST
Seemingly introduced with https://git.xfce.org/apps/xfce4-notifyd/commit/?id=4c5b89fb77cc02e99baf3a379bf761cfb9f5d5a9
Comment 3 Simon Steinbeiss editbugs 2017-10-26 23:30:23 CEST
Potential patch that has to be tested with multi-monitor settings (primary display etc)

--- a/xfce4-notifyd/xfce-notify-window.c	2017-09-30 01:16:35.000000000 +0300
+++ b/xfce4-notifyd/xfce-notify-window.c	2017-10-26 10:57:40.905797544 +0300
@@ -217,7 +217,7 @@
        screen as maximum width. */
 #if GTK_CHECK_VERSION (3, 22, 0)
     monitor = gdk_display_get_monitor_at_window (gtk_widget_get_display (GTK_WIDGET (window)),
-                                                 gtk_widget_get_window (GTK_WIDGET (window)));
+                                                 gdk_screen_get_root_window (screen));
     gdk_monitor_get_geometry (monitor, &geometry);
     screen_width = geometry.width / 30;
 #else
Comment 4 Christian Hesse 2017-10-27 20:20:15 CEST
Tested on single and multi monitor setup, works well and without error messages.
Thanks!
Comment 5 Git Bot editbugs 2017-10-29 23:39:38 CET
Viktor Odintsev referenced this bugreport in commit 0bb7f122815ce5529bb7f63bf1f78a71809fe470

Fix warning about gdk_window_get_origin (Bug #13935)

https://git.xfce.org/apps/xfce4-notifyd/commit?id=0bb7f122815ce5529bb7f63bf1f78a71809fe470
Comment 6 Simon Steinbeiss editbugs 2017-10-29 23:49:37 CET
I've successfully tested the patch, thanks!
Comment 7 Simon Steinbeiss editbugs 2017-11-26 01:18:05 CET
*** Bug 14034 has been marked as a duplicate of this bug. ***

Bug #13935

Reported by:
joksik83
Reported on: 2017-10-19
Last modified on: 2017-11-26
Duplicates (1):
  • 14034 xfce4-notifyd 0.4.0 spams journal with "gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed"

People

Assignee:
Simon Steinbeiss
CC List:
2 users

Version

Attachments

Additional information