summaryrefslogtreecommitdiff
path: root/clients/resizor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-12-19 15:36:10 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-12-19 15:36:10 -0500
commit8da0fbde12e2c1ce07ece6f8b2b9a5a9a9ca3ff4 (patch)
tree765582633ba4085de83689fa842ef57c702abf2b /clients/resizor.c
parent2a25cd4ffa02a0dbf7a61f446274a091415c5cb9 (diff)
downloadweston-8da0fbde12e2c1ce07ece6f8b2b9a5a9a9ca3ff4.tar.gz
resizor: Use symbolic name for BTN_RIGHT
Also, we were actually using BTN_MIDDLE before.
Diffstat (limited to 'clients/resizor.c')
-rw-r--r--clients/resizor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/resizor.c b/clients/resizor.c
index c3d0327a..87c7af3f 100644
--- a/clients/resizor.c
+++ b/clients/resizor.c
@@ -27,6 +27,7 @@
#include <cairo.h>
#include <math.h>
+#include <linux/input.h>
#include <wayland-client.h>
#include "window.h"
@@ -175,7 +176,7 @@ button_handler(struct window *window,
struct resizor *resizor = data;
switch (button) {
- case 274:
+ case BTN_RIGHT:
if (state)
show_menu(resizor, input);
else