Skip to content

Commit 67c2eff

Browse files
committed
Add comment
1 parent c62efad commit 67c2eff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WindowStateSaver.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public class Gala.WindowStateSaver : GLib.Object {
127127
}
128128
}
129129

130+
// this is a fix for #2552 and #2526.
131+
// window.move_resize_frame (false, ...) should constrain the window to the monitor bounds
132+
// but mutter's constraint system can drop some constraints when it can't satisfy every single one of them.
133+
// Instead we manually constrain the window based on its visible area.
130134
if (validate_last_window_position (window.display, { last_x, last_y, last_width, last_height })) {
131135
window.move_resize_frame (true, last_x, last_y, last_width, last_height);
132136
}

0 commit comments

Comments
 (0)