From ea5f814e611094cca992afb6d54b49d178bce959 Mon Sep 17 00:00:00 2001 From: William Wold Date: Wed, 30 Sep 2020 16:12:15 -0700 Subject: Window list Wayland support --- applets/wncklet/window-list.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'applets/wncklet/window-list.c') diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index 54105f60..5c336259 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -27,6 +27,7 @@ #ifdef HAVE_WAYLAND #include +#include "wayland-backend.h" #endif // HAVE_WAYLAND #define MATE_DESKTOP_USE_UNSTABLE_API @@ -138,7 +139,12 @@ static void tasklist_apply_orientation(TasklistData* tasklist) } #endif // HAVE_X11 - // Not yet implemented for Wayland +#ifdef HAVE_WAYLAND + if (GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default())) + { + wayland_tasklist_set_orientation(tasklist->tasklist, tasklist->orientation); + } +#endif } static void tasklist_set_button_relief(TasklistData* tasklist, GtkReliefStyle relief) @@ -759,7 +765,7 @@ gboolean window_list_applet_fill(MatePanelApplet* applet) #ifdef HAVE_WAYLAND if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ())) { - tasklist->tasklist = gtk_label_new ("[Tasklist not supported on Wayland]"); + tasklist->tasklist = wayland_tasklist_new(); } else #endif // HAVE_WAYLAND -- cgit v1.2.1