resizor: Use symbolic name for BTN_RIGHT
Also, we were actually using BTN_MIDDLE before.
This commit is contained in:
parent
2a25cd4ffa
commit
8da0fbde12
@ -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…
Reference in New Issue
Block a user