aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-01 10:43:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-01 10:43:58 +0000
commitfff480e5849ec5cd2916e4cfe006374806ebb756 (patch)
treec520cd55f5536ea6639b48b7a6671b9a09ac5326 /input.c
parentrender: csd: split up positioning from rendering (diff)
input: use xdg_toplevel_resize_edge enum type
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index b5973364..bf3a0a91 100644
--- a/input.c
+++ b/input.c
@@ -947,7 +947,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
case TERM_SURF_BORDER_RIGHT:
case TERM_SURF_BORDER_TOP:
case TERM_SURF_BORDER_BOTTOM: {
- static const int map[] = {
+ static const enum xdg_toplevel_resize_edge map[] = {
[TERM_SURF_BORDER_LEFT] = XDG_TOPLEVEL_RESIZE_EDGE_LEFT,
[TERM_SURF_BORDER_RIGHT] = XDG_TOPLEVEL_RESIZE_EDGE_RIGHT,
[TERM_SURF_BORDER_TOP] = XDG_TOPLEVEL_RESIZE_EDGE_TOP,
@@ -955,7 +955,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
};
if (button == BTN_LEFT && state == WL_POINTER_BUTTON_STATE_PRESSED) {
- int resize_type;
+ enum xdg_toplevel_resize_edge resize_type;
int x = wayl->mouse.x;
int y = wayl->mouse.y;