resizor: Use symbolic name for BTN_RIGHT

Also, we were actually using BTN_MIDDLE before.
This commit is contained in:
Kristian Høgsberg 2011-12-19 15:36:10 -05:00
parent 2a25cd4ffa
commit 8da0fbde12

View File

@ -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