From f396a2bebc9c365527c5c6e4d4d489879e8bbea4 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Wed, 30 Aug 2017 15:13:58 -0400 Subject: Store a window flag when user resizes from tiled Use that flag to retain the correct window size when performing other operations. Reset when re-tiling. --- src/core/constraints.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/constraints.c') diff --git a/src/core/constraints.c b/src/core/constraints.c index 783449d3..99b0aefa 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -929,7 +929,13 @@ constrain_tiling (MetaWindow *window, break; } - /* Maintain current tile size for all other user-initiated alternatives */ + /* Mark window as being resized from a tiled state */ + window->tile_resized = TRUE; + } + + if (window->tile_resized) + { + /* Maintain current tile size for user-resized windows */ target_size.x = info->orig.x; target_size.width = info->orig.width; } -- cgit v1.2.1