summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-25 11:36:32 +0100
committerLuke from DC <[email protected]>2020-12-25 22:39:28 +0000
commit755d6e73771bddfd192e47ef593460e8540591ca (patch)
treecd269e961e73e45e0c286327c7afc45f4319974a /applets
parentc4efeed9a6e50f83a21490dfbab05395b9aafcd1 (diff)
downloadmate-panel-755d6e73771bddfd192e47ef593460e8540591ca.tar.bz2
mate-panel-755d6e73771bddfd192e47ef593460e8540591ca.tar.xz
wncklet: Condition ~wm_name is always true
Diffstat (limited to 'applets')
-rw-r--r--applets/wncklet/workspace-switcher.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 7fcc4a6a..c9796c18 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -200,14 +200,13 @@ static void update_properties_for_wm(PagerData* pager)
static void window_manager_changed(WnckScreen* screen, PagerData* pager)
{
+#ifdef HAVE_X11
const char *wm_name = NULL;
-#ifdef HAVE_X11
if (pager->screen)
{
wm_name = wnck_screen_get_window_manager_name (pager->screen);
}
-#endif /* HAVE_X11 */
if (!wm_name)
pager->wm = PAGER_WM_UNKNOWN;
@@ -221,6 +220,9 @@ static void window_manager_changed(WnckScreen* screen, PagerData* pager)
pager->wm = PAGER_WM_COMPIZ;
else
pager->wm = PAGER_WM_UNKNOWN;
+#else
+ pager->wm = PAGER_WM_UNKNOWN;
+#endif /* HAVE_X11 */
update_properties_for_wm(pager);
pager_update(pager);