summaryrefslogtreecommitdiff
path: root/src/core/constraints.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2017-08-30 15:13:58 -0400
committerVictor Kareh <[email protected]>2017-08-30 15:13:58 -0400
commitf396a2bebc9c365527c5c6e4d4d489879e8bbea4 (patch)
tree01a48bc49de888a02e3a08a4d83455176b95e9ab /src/core/constraints.c
parentc577f51e1e1258f8a6c55764a8b86d3421c466e7 (diff)
downloadmarco-f396a2bebc9c365527c5c6e4d4d489879e8bbea4.tar.bz2
marco-f396a2bebc9c365527c5c6e4d4d489879e8bbea4.tar.xz
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.
Diffstat (limited to 'src/core/constraints.c')
-rw-r--r--src/core/constraints.c8
1 files changed, 7 insertions, 1 deletions
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;
}