Avoid resizing fullscreen container with non-fullscreen
Another option is to modify resize_find_tiling_participants but this would also affect resizing of tiling containers in scripts, so I chose to make this change specific to resizing with the mouse. Follow-up after #3983 Fixes #3980
This commit is contained in:
parent
4922b245c1
commit
b590ca076c
|
@ -48,7 +48,11 @@ static bool tiling_resize_for_border(Con *con, border_t border, xcb_button_press
|
||||||
|
|
||||||
bool res = resize_find_tiling_participants(&first, &second, search_direction, false);
|
bool res = resize_find_tiling_participants(&first, &second, search_direction, false);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
LOG("No second container in this direction found.\n");
|
DLOG("No second container in this direction found.\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (first->fullscreen_mode != second->fullscreen_mode) {
|
||||||
|
DLOG("Avoiding resize between containers with different fullscreen modes, %d != %d\n", first->fullscreen_mode, second->fullscreen_mode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue