From 755d6e73771bddfd192e47ef593460e8540591ca Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 25 Dec 2020 11:36:32 +0100 Subject: wncklet: Condition ~wm_name is always true --- applets/wncklet/workspace-switcher.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'applets') 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); -- cgit v1.2.1