mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-08-12 20:20:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user