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
Indeed, I can reproduce that. Not sure where it comes from yet, but I'll take a look.
Seemingly introduced with https://git.xfce.org/apps/xfce4-notifyd/commit/?id=4c5b89fb77cc02e99baf3a379bf761cfb9f5d5a9
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
Tested on single and multi monitor setup, works well and without error messages. Thanks!
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
I've successfully tested the patch, thanks!
*** Bug 14034 has been marked as a duplicate of this bug. ***