mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-06 20:07:02 +00:00
When adding scratch windows make them above
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user