diff options
Diffstat (limited to 'src/compositor-x11.c')
-rw-r--r-- | src/compositor-x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 98baa8a8..5a5c8db3 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -525,7 +525,9 @@ x11_compositor_deliver_button_event(struct x11_compositor *c, } notify_button(&c->base.seat->seat, - weston_compositor_get_time(), button, state); + weston_compositor_get_time(), button, + state ? WL_POINTER_BUTTON_STATE_PRESSED : + WL_POINTER_BUTTON_STATE_RELEASED); } static int |