resizor: Use symbolic name for BTN_RIGHT

Also, we were actually using BTN_MIDDLE before.
dev
Kristian Høgsberg 13 years ago
parent 2a25cd4ffa
commit 8da0fbde12
  1. 3
      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

Loading…
Cancel
Save