When adding scratch windows make them above

This commit is contained in:
Tor Hedin Brønner
2017-09-25 11:49:53 +02:00
parent d2b8e5771b
commit 4c6456df18
+4 -2
View File
@@ -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;
}