Fail gracefuly under Wayland if support not enabled
Issue Description
Apparently xfce4-notifyd will crash upon receiving a notification when running under Wayland and Wayland support is not explicitely enabled. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1092620
Here's an example log provided in the downstream bug:
Jan 09 23:44:48 haruka systemd[15098]: Starting xfce4-notifyd.service -
XFCE notifications service...
Jan 09 23:44:48 haruka systemd[15098]: Started xfce4-notifyd.service -
XFCE notifications service.
Jan 09 23:44:48 haruka xfce4-notifyd[23287]: **
Jan 09 23:44:48 haruka xfce4-notifyd[23287]:
xfce4-notifyd:ERROR:xfce-notify-window.c:1863:xfce_notify_window_set_geometry:
code should not be reached
Jan 09 23:44:48 haruka xfce4-notifyd[23287]: Bail out!
xfce4-notifyd:ERROR:xfce-notify-window.c:1863:xfce_notify_window_set_geometry:
code should not be reached
Jan 09 23:44:48 haruka systemd[15098]: xfce4-notifyd.service: Main
process exited, code=killed, status=6/ABRT
Jan 09 23:44:48 haruka systemd[15098]: xfce4-notifyd.service: Failed
with result 'signal'.
We might enable Wayland support in Debian to fix this, but maybe it'd nice to fail gracefully instead of crashing on a assert() if possible.
Versions
- OS distribution and version: Debian
- Overall Xfce version: 4.20
- xfce4-notifyd version (git hash if not a release): 0.9.6-1
- Windowing system (X11/Wayland): Wayland
- Compositor and version (if Wayland):