From b590ca076c030f07102518b270d78ed8a6da278f Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Thu, 9 Apr 2020 15:47:21 +0200 Subject: [PATCH] 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 --- src/click.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }