mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Use wlr_keyboard_get_modifiers
This commit is contained in:
parent
dd337127d8
commit
1b3b75a094
1 changed files with 2 additions and 2 deletions
|
@ -480,7 +480,7 @@ static void dispatch_cursor_button_floating(struct sway_cursor *cursor,
|
||||||
|
|
||||||
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat);
|
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat);
|
||||||
bool mod_pressed = keyboard &&
|
bool mod_pressed = keyboard &&
|
||||||
(keyboard->modifiers.depressed & config->floating_mod);
|
(wlr_keyboard_get_modifiers(keyboard) & config->floating_mod);
|
||||||
enum resize_edge edge = find_resize_edge(cont, cursor);
|
enum resize_edge edge = find_resize_edge(cont, cursor);
|
||||||
bool over_title = edge == RESIZE_EDGE_NONE && !surface;
|
bool over_title = edge == RESIZE_EDGE_NONE && !surface;
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ static void dispatch_cursor_button_floating(struct sway_cursor *cursor,
|
||||||
seat->operation = OP_RESIZE;
|
seat->operation = OP_RESIZE;
|
||||||
seat->op_container = cont;
|
seat->op_container = cont;
|
||||||
seat->op_resize_preserve_ratio = keyboard &&
|
seat->op_resize_preserve_ratio = keyboard &&
|
||||||
(keyboard->modifiers.depressed & WLR_MODIFIER_SHIFT);
|
(wlr_keyboard_get_modifiers(keyboard) & WLR_MODIFIER_SHIFT);
|
||||||
seat->op_resize_edge = resizing_via_mod ?
|
seat->op_resize_edge = resizing_via_mod ?
|
||||||
RESIZE_EDGE_BOTTOM | RESIZE_EDGE_RIGHT : edge;
|
RESIZE_EDGE_BOTTOM | RESIZE_EDGE_RIGHT : edge;
|
||||||
seat->op_button = button;
|
seat->op_button = button;
|
||||||
|
|
Loading…
Reference in a new issue