diff options
| author | Victor Kareh <[email protected]> | 2026-01-20 21:21:50 -0500 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-01-21 16:37:58 -0500 |
| commit | 5492559810bfe8a8f997dbf79dd6b509743fab2c (patch) | |
| tree | ae797e98a0250a357976d688595135a9dbb0f1c5 | |
| parent | 8fddd5d9114b4bd6169b7ab8f26acf3025dfa024 (diff) | |
| download | marco-1.28.tar.bz2 marco-1.28.tar.xz | |
window: Fix corner-tiled windows becoming maximized on reload1.28
Corner-tiled windows were being treated as maximized horizontally, which
is wrong. Instead, we clear all maximized flags to make sure their size
is respected on reload.
Fixes #710
| -rw-r--r-- | src/core/window.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/window.c b/src/core/window.c index ae0fa791..6781523c 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2715,9 +2715,12 @@ meta_window_tile (MetaWindow *window) window->tile_mode == META_TILE_TOP_RIGHT || window->tile_mode == META_TILE_TOP_LEFT) { - MetaRectangle *saved_rect = NULL; - saved_rect = &window->saved_rect; - meta_window_maximize_internal (window, META_MAXIMIZE_HORIZONTAL, saved_rect); + /* Corner-tiled windows should not be maximized in any direction. + * Don't modify saved_rect to preserve it when corner-tiling a + * maximized window. Make sure both maximized flags are cleared + * so _NET_WM_STATE doesn't get MAXIMIZED_HORZ or MAXIMIZED_VERT set. */ + window->maximized_horizontally = FALSE; + window->maximized_vertically = FALSE; } else meta_window_save_rect (window); @@ -2735,6 +2738,7 @@ meta_window_tile (MetaWindow *window) } set_allowed_actions_hint (window); + set_net_wm_state (window); } void |
