mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-06-28 13:10:05 +00:00
Bugfix: toggle-maximize-width was broken for multimonitor configuration
Note: unmaximize is still broken if the window moved between monitors..
This commit is contained in:
@@ -2275,8 +2275,9 @@ function toggleMaximizeHorizontally(metaWindow) {
|
||||
|
||||
metaWindow.unmaximizedRect = null;
|
||||
} else {
|
||||
let x = monitor.x + minimumMargin;
|
||||
metaWindow.unmaximizedRect = frame;
|
||||
metaWindow.move_resize_frame(true, minimumMargin, frame.y, monitor.width - minimumMargin*2, frame.height);
|
||||
metaWindow.move_resize_frame(true, x, frame.y, monitor.width - minimumMargin*2, frame.height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user