summaryrefslogtreecommitdiff
path: root/src/core/constraints.c
diff options
context:
space:
mode:
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;
}