mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
Use monitor relative coordinates in ensureViewport
The whole pipeline assumes coordinates being relative, correcting them back to absolute coordinates in move.
This commit is contained in:
@@ -705,6 +705,10 @@ function ensureViewport(meta_window, space, force) {
|
||||
frame.width,
|
||||
primary.height - panelBox.height - margin_tb*2);
|
||||
|
||||
// Use monitor relative coordinates.
|
||||
frame.x -= primary.x;
|
||||
frame.y -= primary.y;
|
||||
|
||||
if (meta_window.destinationX !== undefined)
|
||||
// Use the destination of the window if available
|
||||
frame.x = meta_window.destinationX;
|
||||
|
||||
Reference in New Issue
Block a user