diff options
| author | mark.herbert <[email protected]> | 2025-07-18 11:42:38 +0300 |
|---|---|---|
| committer | lukefromdc <[email protected]> | 2025-09-04 10:12:14 -0400 |
| commit | d68c23bd8e07612f305dcc7825f3a8ee448544f5 (patch) | |
| tree | a0de3e3b98337639b75279a1d58ea52b276d82bb /applets/wncklet/wncklet.c | |
| parent | 7867d2d5888f48369bc34c1182d5171c4c224b13 (diff) | |
| download | mate-panel-d68c23bd8e07612f305dcc7825f3a8ee448544f5.tar.bz2 mate-panel-d68c23bd8e07612f305dcc7825f3a8ee448544f5.tar.xz | |
Wayland-only-build attempt 3 - changes from other branch removed
Diffstat (limited to 'applets/wncklet/wncklet.c')
| -rw-r--r-- | applets/wncklet/wncklet.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c index bede4705..1ced4507 100644 --- a/applets/wncklet/wncklet.c +++ b/applets/wncklet/wncklet.c @@ -35,11 +35,15 @@ #include <gdk/gdkx.h> #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include <libwnck/libwnck.h> +#include "workspace-switcher.h" +#endif +#ifndef HAVE_X11 +#include <gdk/gdkwayland.h> +#define GDK_IS_X11_DISPLAY(object) !(G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_DISPLAY)) #endif #include "wncklet.h" #include "window-menu.h" -#include "workspace-switcher.h" #include "window-list.h" #include "showdesktop.h" @@ -127,8 +131,10 @@ static gboolean wncklet_factory(MatePanelApplet* applet, const char* iid, gpoint if (!strcmp(iid, "WindowMenuApplet")) retval = window_menu_applet_fill(applet); +#ifdef HAVE_X11 else if (!strcmp(iid, "WorkspaceSwitcherApplet") || !strcmp(iid, "PagerApplet")) retval = workspace_switcher_applet_fill(applet); +#endif else if (!strcmp(iid, "WindowListApplet") || !strcmp(iid, "TasklistApplet")) retval = window_list_applet_fill(applet); else if (!strcmp(iid, "ShowDesktopApplet")) |
