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:
Orestis Floros 2020-04-09 15:47:21 +02:00
parent 4922b245c1
commit b590ca076c
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }