mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
resizeHandler: fix coordinates
This makes resize work correctly on all monitors.
This commit is contained in:
@@ -1457,7 +1457,8 @@ function resizeHandler(metaWindow) {
|
||||
} else {
|
||||
// Restore window position when eg. exiting fullscreen
|
||||
!Navigator.navigating && selected
|
||||
&& move_to(space, metaWindow, {x: metaWindow.get_frame_rect().x});
|
||||
&& move_to(space, metaWindow, {
|
||||
x: metaWindow.get_frame_rect().x - space.monitor.x});
|
||||
|
||||
space.layout(true);
|
||||
ensureViewport(space.selectedWindow, space, true);
|
||||
|
||||
Reference in New Issue
Block a user