mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
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:
+2
-1
@@ -157,7 +157,8 @@ function toggleScratch() {
|
||||
}
|
||||
|
||||
function toggleScratchWindow() {
|
||||
if (isScratchActive())
|
||||
let focus = global.display.focus_window;
|
||||
if (isScratchWindow(focus))
|
||||
hide();
|
||||
else
|
||||
show(true);
|
||||
|
||||
Reference in New Issue
Block a user