mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 19:56:53 +00:00
setInitialPosition: Place non-focused windows using ensure
`move_to` will no longer place the input window on the stack, so instead run ensure on the `selectedWindow`.
This commit is contained in:
@@ -314,9 +314,7 @@ function setInitialPosition(actor, existing) {
|
||||
space.selectedWindow = metaWindow;
|
||||
ensure_viewport(space, metaWindow, true);
|
||||
} else {
|
||||
move_to(space, metaWindow,
|
||||
{ x: metaWindow.scrollwm_initial_position.x,
|
||||
y: metaWindow.scrollwm_initial_position.y });
|
||||
ensure_viewport(space, space.selectedWindow);
|
||||
}
|
||||
|
||||
delete metaWindow.scrollwm_initial_position;
|
||||
|
||||
Reference in New Issue
Block a user