summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-25 11:25:00 +0100
committerLuke from DC <[email protected]>2020-12-25 22:26:51 +0000
commitc4efeed9a6e50f83a21490dfbab05395b9aafcd1 (patch)
tree625b65dd17860406aed9d28b410334526b4aff4e /applets
parentc071e9dd6ceeec569c95be8df7ad130629e1fec1 (diff)
downloadmate-panel-c4efeed9a6e50f83a21490dfbab05395b9aafcd1.tar.bz2
mate-panel-c4efeed9a6e50f83a21490dfbab05395b9aafcd1.tar.xz
wncklet: variable is assigned a value that is never used
Diffstat (limited to 'applets')
-rw-r--r--applets/wncklet/workspace-switcher.c4
1 files changed, 2 insertions, 2 deletions
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);