From a8c112ce4e1eb696948a06e5340ead2fb9c81ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 22 Apr 2018 14:38:21 +0200 Subject: [PATCH] Deactivate the stackoverlay when the scratch layer is active --- scratch.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scratch.js b/scratch.js index 337b253..0bfa327 100644 --- a/scratch.js +++ b/scratch.js @@ -2,6 +2,7 @@ const Extension = imports.misc.extensionUtils.extensions['paperwm@hedning:matrix const Meta = imports.gi.Meta; const TopBar = Extension.imports.topbar; +const StackOverlay = Extension.imports.stackoverlay; const utils = Extension.imports.utils; const debug = utils.debug; let float; @@ -12,6 +13,9 @@ function makeScratch(metaWindow) { metaWindow.stick(); metaWindow.clone.hide(); metaWindow.get_compositor_private().show(); + + StackOverlay.leftOverlay.setTarget(null); + StackOverlay.rightOverlay.setTarget(null); } function unmakeScratch(metaWindow) { @@ -61,6 +65,8 @@ function show() { meta_window.get_compositor_private().show(); }); windows[0].activate(global.get_current_time()); + StackOverlay.leftOverlay.setTarget(null); + StackOverlay.rightOverlay.setTarget(null); } function hide() {