aboutsummaryrefslogtreecommitdiff
path: root/examples/layer-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/layer-shell.c')
-rw-r--r--examples/layer-shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c
index 6e293f55..3f955be4 100644
--- a/examples/layer-shell.c
+++ b/examples/layer-shell.c
@@ -157,6 +157,7 @@ static void wl_pointer_enter(void *data, struct wl_pointer *wl_pointer,
static void wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
uint32_t serial, struct wl_surface *surface) {
cur_x = cur_y = -1;
+ buttons = 0;
}
static void wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,