diff options
author | William Wold <[email protected]> | 2020-09-30 16:12:15 -0700 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-10-21 20:35:15 +0200 |
commit | ea5f814e611094cca992afb6d54b49d178bce959 (patch) | |
tree | 9da4238f70e5f889392a2e8b7592e74e3bd409a1 /applets/wncklet/window-list.c | |
parent | 2f5ab12d358be4ab3e8e8ba42dcd0a7a6a84de64 (diff) | |
download | mate-panel-ea5f814e611094cca992afb6d54b49d178bce959.tar.bz2 mate-panel-ea5f814e611094cca992afb6d54b49d178bce959.tar.xz |
Window list Wayland support
Diffstat (limited to 'applets/wncklet/window-list.c')
-rw-r--r-- | applets/wncklet/window-list.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 <gdk/gdkwayland.h> +#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 |