mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Make mod+resize a floating container resize the container itself
Rather than resizing the split within the container.
This commit is contained in:
parent
e9d46ccbdd
commit
4d023c0390
|
@ -675,7 +675,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
||||||
// Handle tiling resize via mod
|
// Handle tiling resize via mod
|
||||||
bool mod_pressed = keyboard &&
|
bool mod_pressed = keyboard &&
|
||||||
(wlr_keyboard_get_modifiers(keyboard) & config->floating_mod);
|
(wlr_keyboard_get_modifiers(keyboard) & config->floating_mod);
|
||||||
if (!is_floating && mod_pressed && state == WLR_BUTTON_PRESSED) {
|
if (!is_floating_or_child && mod_pressed && state == WLR_BUTTON_PRESSED) {
|
||||||
uint32_t btn_resize = config->floating_mod_inverse ?
|
uint32_t btn_resize = config->floating_mod_inverse ?
|
||||||
BTN_LEFT : BTN_RIGHT;
|
BTN_LEFT : BTN_RIGHT;
|
||||||
if (button == btn_resize) {
|
if (button == btn_resize) {
|
||||||
|
|
Loading…
Reference in a new issue