From c4efeed9a6e50f83a21490dfbab05395b9aafcd1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 25 Dec 2020 11:25:00 +0100 Subject: wncklet: variable is assigned a value that is never used --- applets/wncklet/workspace-switcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applets/wncklet') diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index a830c3af..7fcc4a6a 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -321,11 +321,13 @@ static void applet_style_updated (MatePanelApplet *applet, GtkStyleContext *cont */ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, PagerData* pager) { +#ifdef HAVE_X11 GdkScrollDirection absolute_direction; int index; int n_workspaces; int n_columns; int in_last_row; +#endif /* HAVE_X11 */ if (event->type != GDK_SCROLL) return FALSE; @@ -340,7 +342,6 @@ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, Pa n_workspaces = wnck_screen_get_workspace_count(pager->screen); } else -#endif /* HAVE_X11 */ { index = 0; n_workspaces = 1; @@ -431,7 +432,6 @@ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, Pa break; } -#ifdef HAVE_X11 if (pager->screen) { wnck_workspace_activate(wnck_screen_get_workspace(pager->screen, index), event->time); -- cgit v1.2.1