toggle-scratch-window: only hide when the scratch window has focus

This makes it easier to switch between the tiling and a floating window.
This commit is contained in:
Tor Hedin Brønner
2019-04-08 15:23:47 +02:00
parent 154cf59a59
commit 509c38caee
+2 -1
View File
@@ -157,7 +157,8 @@ function toggleScratch() {
}
function toggleScratchWindow() {
if (isScratchActive())
let focus = global.display.focus_window;
if (isScratchWindow(focus))
hide();
else
show(true);