aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-30 18:28:21 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-30 18:28:21 -0400
commit168f65fb7a336c7f7067bfd56413b2d19556c8bf (patch)
treee66c49955d3d126771e8707bb2e9215410b51a2a /examples
parente3eb487dc2c3ed51b974212ddb15ce839289eba2 (diff)
Minor bugfixes
Diffstat (limited to 'examples')
-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,