From 4c6456df18bfac8bee7941c71b67461afd818e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 25 Sep 2017 11:40:29 +0200 Subject: [PATCH] When adding scratch windows make them above --- tiling.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tiling.js b/tiling.js index 5756eb0..976241d 100644 --- a/tiling.js +++ b/tiling.js @@ -370,14 +370,16 @@ add_handler = (ws, meta_window) => { } if (winprop.scratch_layer) { meta_window.stick(); + meta_window.make_above(); return; } } - // If we're focusing a scratch window make the new window scratch + // If we're focusing a scratch window make on top and return let focus_window = global.display.focus_window; if (focus_window && focus_window.is_on_all_workspaces()) { - meta_window.stick() + meta_window.stick(); + meta_window.make_above(); return; }