summaryrefslogtreecommitdiff
path: root/applets/wncklet/workspace-switcher.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2025-09-28 00:02:10 -0400
committerlukefromdc <[email protected]>2025-09-28 03:04:25 -0400
commit271fea95072851db70191cf55a830b43656b1e47 (patch)
tree1a7573a966dfbcfc2f393296ac4180c6afe0f4de /applets/wncklet/workspace-switcher.c
parentcf2f458dd8b70450c3fdffb10d4a45c8c369b3e9 (diff)
downloadmate-panel-Switcher-WIP.tar.bz2
mate-panel-Switcher-WIP.tar.xz
Workspace-switcher: Initially display a switcher applet in waylandSwitcher-WIP
*Nothing is wired up yet, this is just a displayable applet initially hardcoded to 4 workspaces. That will change to the actual number of workspaces once this is wired up to wayfire
Diffstat (limited to 'applets/wncklet/workspace-switcher.c')
-rw-r--r--applets/wncklet/workspace-switcher.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index cba0ecbd..f194ebd5 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -31,6 +31,8 @@
#ifdef HAVE_WAYLAND
#include <gdk/gdkwayland.h>
+#include "wayland-protocol/wlr-foreign-toplevel-management-unstable-v1-client.h"
+#include "wayland-backend.h"
#endif /* HAVE_WAYLAND */
#include <libmate-desktop/mate-gsettings.h>
@@ -785,7 +787,8 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet)
#ifdef HAVE_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
{
- pager->pager = gtk_label_new ("[Pager not supported on Wayland]");
+ GtkWidget *box;
+ pager->pager = wayland_pager_new(box);
}
else
#endif /* HAVE_WAYLAND */