mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
insertWindow: Only set clone position for new windows
This commit is contained in:
@@ -669,6 +669,9 @@ function insertWindow(metaWindow, {existing}) {
|
||||
metaWindow.move_frame(true,
|
||||
position.x,
|
||||
position.y);
|
||||
metaWindow.clone.set_position(
|
||||
position.x - x_offset,
|
||||
position.y - y_offset);
|
||||
|
||||
clone.set_scale(0, 0);
|
||||
Tweener.addTween(clone, {
|
||||
@@ -678,10 +681,6 @@ function insertWindow(metaWindow, {existing}) {
|
||||
});
|
||||
}
|
||||
|
||||
metaWindow.clone.set_position(
|
||||
position.x - x_offset,
|
||||
position.y - y_offset);
|
||||
|
||||
if (metaWindow.has_focus()) {
|
||||
space.selectedWindow = metaWindow;
|
||||
ensureViewport(metaWindow, space, true);
|
||||
|
||||
Reference in New Issue
Block a user