mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 03:46:53 +00:00
Position maximized windows properly
We can just take the coordinates from the frame since it's not possible to actually move a maximized window.
This commit is contained in:
@@ -332,6 +332,10 @@ ensure_viewport = (space, meta_window, force) => {
|
||||
time: 0.25,
|
||||
});
|
||||
|
||||
} else if (meta_window.maximized_vertically
|
||||
&& meta_window.maximized_horizontally) {
|
||||
x = frame.x;
|
||||
y = frame.y;
|
||||
} else if (required_width <= primary.width) {
|
||||
let leftovers = primary.width - required_width;
|
||||
let gaps = space.length + 1;
|
||||
|
||||
Reference in New Issue
Block a user