commit | 8da0fbde12e2c1ce07ece6f8b2b9a5a9a9ca3ff4 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Mon Dec 19 15:36:10 2011 -0500 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Mon Dec 19 15:36:10 2011 -0500 |
tree | 765582633ba4085de83689fa842ef57c702abf2b | |
parent | 2a25cd4ffa02a0dbf7a61f446274a091415c5cb9 [diff] [blame] |
resizor: Use symbolic name for BTN_RIGHT Also, we were actually using BTN_MIDDLE before.
diff --git a/clients/resizor.c b/clients/resizor.c index c3d0327..87c7af3 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 @@ struct resizor *resizor = data; switch (button) { - case 274: + case BTN_RIGHT: if (state) show_menu(resizor, input); else