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 Apr 25, 2024
2 parents cc5c15d + 82535f7 commit 2228c67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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.6.4",
"version-name": "46.6.5",
"donations": {
"buymeacoffee": "jaytaala",
"patreon": "valpackett"
Expand Down
16 changes: 15 additions & 1 deletion tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,7 @@ border-radius: ${borderWidth}px;
this.getWindows().forEach(w => {
removeHandlerFlags(w);
delete w.pos_mismatch_count;
delete w.tiled_on_minimize;
});
this.signals.destroy();
this.signals = null;
Expand Down Expand Up @@ -4315,10 +4316,23 @@ export function focus_handler(metaWindow) {
Push all minimized windows to the scratch layer
*/
export function minimizeHandler(metaWindow) {
console.debug('minimized', metaWindow?.title);
if (metaWindow.minimized) {
console.debug('minimized', metaWindow?.title);
// check if was tiled
if (isTiled(metaWindow)) {
metaWindow.tiled_on_minimize = true;
}
Scratch.makeScratch(metaWindow);
}
else {
console.debug('unminimized', metaWindow?.title);
if (metaWindow.tiled_on_minimize) {
delete metaWindow.tiled_on_minimize;
Utils.later_add(Meta.LaterType.IDLE, () => {
Scratch.unmakeScratch(metaWindow);
});
}
}
}

/**
Expand Down

0 comments on commit 2228c67

Please sign in to comment.