diff --git a/scratch.js b/scratch.js index 99a13a3..3a96dd0 100644 --- a/scratch.js +++ b/scratch.js @@ -157,7 +157,8 @@ function toggleScratch() { } function toggleScratchWindow() { - if (isScratchActive()) + let focus = global.display.focus_window; + if (isScratchWindow(focus)) hide(); else show(true);