diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-04-09 15:47:21 +0200 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2020-04-09 15:49:09 +0200 |
commit | b590ca076c030f07102518b270d78ed8a6da278f (patch) | |
tree | 8c24cf132cd45da14bc934f2c96c4808e2f6b289 | |
parent | 4922b245c1d5bb5700b104b2c87c2d35a40e76cc (diff) | |
download | i3-b590ca076c030f07102518b270d78ed8a6da278f.tar.gz i3-b590ca076c030f07102518b270d78ed8a6da278f.zip |
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
-rw-r--r-- | src/click.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/click.c b/src/click.c index 19076252..cc12158a 100644 --- a/src/click.c +++ b/src/click.c @@ -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); 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; } |