diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2020-10-21 17:21:23 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-11 10:58:38 +0100 |
commit | 7693f61d813869f7f8b3c658f610a16f6283b24f (patch) | |
tree | ab5df7c5da7bf1108eae9a2df6b248994ac5ee38 /tinywl | |
parent | 238d1c078fb03338e9f271d98f7bf6b1fc399285 (diff) |
Replace wlr_key_state with wl_keyboard_key_state
There's no reason to have duplicate enums
Diffstat (limited to 'tinywl')
-rw-r--r-- | tinywl/tinywl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index 84a7636b..e2cf30a0 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -197,7 +197,7 @@ static void keyboard_handle_key( bool handled = false; uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard->device->keyboard); - if ((modifiers & WLR_MODIFIER_ALT) && event->state == WLR_KEY_PRESSED) { + if ((modifiers & WLR_MODIFIER_ALT) && event->state == WL_KEYBOARD_KEY_STATE_PRESSED) { /* If alt is held down and this button was _pressed_, we attempt to * process it as a compositor keybinding. */ for (int i = 0; i < nsyms; i++) { @@ -374,7 +374,7 @@ static void process_cursor_resize(struct tinywl_server *server, uint32_t time) { int new_left = server->grab_geobox.x; int new_right = server->grab_geobox.x + server->grab_geobox.width; int new_top = server->grab_geobox.y; - int new_bottom = server->grab_geobox.y + server->grab_geobox.height; + int new_bottom = server->grab_geobox.y + server->grab_geobox.height; if (server->resize_edges & WLR_EDGE_TOP) { new_top = border_y; |