maximized: fix y position of eg. firefox wayland

Some windows apparently report the wrong frame.y value when they've just
been maximized, leaving us with the old incorrect value. Simply hardcode
the correct y value instead.
This commit is contained in:
Tor Hedin Brønner
2020-03-07 14:25:19 +01:00
parent f1b151524a
commit 2e407554be
+3 -1
View File
@@ -337,7 +337,9 @@ class Space extends Array {
targetHeight = f.height;
}
if (mw.maximized_vertically) {
y = f.y - space.monitor.y;
// NOTE: This should really be f.y - monitor.y, but eg. firefox
// on wayland reports the wrong y coordinates at this point.
y = y - prefs.vertical_margin;
}
// When resize is synchronous, ie. for X11 windows