diff options
author | rbuj <[email protected]> | 2020-12-25 11:36:32 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2020-12-25 22:39:28 +0000 |
commit | 755d6e73771bddfd192e47ef593460e8540591ca (patch) | |
tree | cd269e961e73e45e0c286327c7afc45f4319974a | |
parent | c4efeed9a6e50f83a21490dfbab05395b9aafcd1 (diff) | |
download | mate-panel-755d6e73771bddfd192e47ef593460e8540591ca.tar.bz2 mate-panel-755d6e73771bddfd192e47ef593460e8540591ca.tar.xz |
wncklet: Condition ~wm_name is always true
-rw-r--r-- | applets/wncklet/workspace-switcher.c | 6 |
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); |