diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-11 10:47:40 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-12 10:45:54 +1000 |
commit | 4d023c03900a7904fe01177816e80da965dc43f6 (patch) | |
tree | 7bf6509ae5ed28e97a08466e0dc491c3818073e9 | |
parent | Use col-resize and row-resize cursor images (diff) | |
download | sway-4d023c03900a7904fe01177816e80da965dc43f6.tar.gz sway-4d023c03900a7904fe01177816e80da965dc43f6.tar.zst sway-4d023c03900a7904fe01177816e80da965dc43f6.zip |
Make mod+resize a floating container resize the container itself
Rather than resizing the split within the container.
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 8e7157a2..3b70b471 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -675,7 +675,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
675 | // Handle tiling resize via mod | 675 | // Handle tiling resize via mod |
676 | bool mod_pressed = keyboard && | 676 | bool mod_pressed = keyboard && |
677 | (wlr_keyboard_get_modifiers(keyboard) & config->floating_mod); | 677 | (wlr_keyboard_get_modifiers(keyboard) & config->floating_mod); |
678 | if (!is_floating && mod_pressed && state == WLR_BUTTON_PRESSED) { | 678 | if (!is_floating_or_child && mod_pressed && state == WLR_BUTTON_PRESSED) { |
679 | uint32_t btn_resize = config->floating_mod_inverse ? | 679 | uint32_t btn_resize = config->floating_mod_inverse ? |
680 | BTN_LEFT : BTN_RIGHT; | 680 | BTN_LEFT : BTN_RIGHT; |
681 | if (button == btn_resize) { | 681 | if (button == btn_resize) { |