diff --git a/scratch.js b/scratch.js index 21c50ef..73851ac 100644 --- a/scratch.js +++ b/scratch.js @@ -21,7 +21,9 @@ function makeScratch(metaWindow) { metaWindow[float] = true; metaWindow.make_above(); metaWindow.stick(); - Tiling.showWindow(metaWindow); + + if (!metaWindow.minimized) + Tiling.showWindow(metaWindow); let monitor = focusMonitor(); if (monitor.clickOverlay) diff --git a/tiling.js b/tiling.js index 0b50022..4f115fd 100644 --- a/tiling.js +++ b/tiling.js @@ -1702,11 +1702,6 @@ function enable() { s.selectedWindow && ensureViewport(s.selectedWindow, s, true); s.monitor.clickOverlay.show(); }); - - if (!Scratch.isScratchActive()) { - Scratch.getScratchWindows().forEach( - w => w.get_compositor_private().hide()); - } } if (Main.layoutManager._startingUp) { @@ -2525,7 +2520,7 @@ function slurp(metaWindow) { } space[to].push(metaWindowToSlurp) - + { // Remove the slurped window let column = space[from]; let row = column.indexOf(metaWindowToSlurp);