summaryrefslogtreecommitdiff
path: root/xmouseless.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmouseless.c')
-rw-r--r--xmouseless.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmouseless.c b/xmouseless.c
index b5ce68a..75d2aea 100644
--- a/xmouseless.c
+++ b/xmouseless.c
@@ -217,7 +217,7 @@ void handle_key(KeyCode keycode, Bool is_press) {
scrollinfo.speed_y += sign * scroll_bindings[i].y;
/* scroll once, workaround for scrolling not working the first time */
- int scroll_x, scroll_y = 0;
+ int scroll_x = 0, scroll_y = 0;
if (scrollinfo.speed_x < 0) scroll_x = -1;
if (scrollinfo.speed_x > 0) scroll_x = 1;
if (scrollinfo.speed_y < 0) scroll_y = -1;