diff options
author | William Wold <[email protected]> | 2020-09-14 02:14:34 -0700 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-10-24 16:49:14 +0200 |
commit | 550f2a11921b48bc1c876b5e7fcc42cc2a4da07f (patch) | |
tree | bb439e4a94589ca117531e4fd65d5c6d17f0b7df /src/daemon/daemon.c | |
parent | a2e79313345fbe8950d6ba123cbc56113dac93b9 (diff) | |
download | mate-notification-daemon-550f2a11921b48bc1c876b5e7fcc42cc2a4da07f.tar.bz2 mate-notification-daemon-550f2a11921b48bc1c876b5e7fcc42cc2a4da07f.tar.xz |
Add initial Wayland backend
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index c42b2e6..7981bb0 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -45,6 +45,11 @@ #include <libwnck/libwnck.h> #endif // HAVE_X11 +#ifdef HAVE_WAYLAND +#include <gdk/gdkwayland.h> +#include "wayland.h" +#endif // HAVE_WAYLAND + #include "daemon.h" #include "engines.h" #include "stack.h" @@ -1369,6 +1374,14 @@ static gboolean notify_daemon_notify_handler(NotifyDaemonNotifications *object, { nw = theme_create_notification (url_clicked_cb); g_object_set_data (G_OBJECT (nw), "_notify_daemon", daemon); + +#if HAVE_WAYLAND + if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ())) + { + wayland_init_notification (nw); + } +#endif // HAVE_WAYLAND + gtk_widget_realize (GTK_WIDGET (nw)); new_notification = TRUE; |