Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed May 23, 2024
2 parents 0eadc7a + 45d7b6a commit 6165935
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/paperwm/PaperWM",
"settings-schema": "org.gnome.shell.extensions.paperwm",
"shell-version": [ "45", "46" ],
"version-name": "46.10.0",
"version-name": "46.10.1",
"donations": {
"buymeacoffee": "jaytaala",
"patreon": "valpackett"
Expand Down
19 changes: 10 additions & 9 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -3882,27 +3882,28 @@ export function insertWindow(metaWindow, { existing }) {
ensureViewport(space.selectedWindow, space);
space.setSpaceTopbarElementsVisible(true);

let slurpPosition;
switch (Settings.prefs.open_window_position) {
case Settings.OpenWindowPositions.DOWN:
stackSlurpTimeout = GLib.timeout_add(
GLib.PRIORITY_DEFAULT,
100,
() => {
slurp(active, SlurpInsertPosition.BELOW);
return false; // on return false destroys timeout
});
slurpPosition = SlurpInsertPosition.BELOW;
break;
case Settings.OpenWindowPositions.UP:
slurpPosition = SlurpInsertPosition.ABOVE;
break;
}

// if need to slurp (i.e. vertical stack)
if (slurpPosition) {
stackSlurpTimeout = GLib.timeout_add(
GLib.PRIORITY_DEFAULT,
100,
() => {
slurp(active, SlurpInsertPosition.ABOVE);
slurp(active, slurpPosition);
return false; // on return false destroys timeout
});
break;
}
});

return;
}

Expand Down

0 comments on commit 6165935

Please sign in to comment.