mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-07-06 17:10:03 +00:00
Return early in Scratch.show if there's no scratch windows
This commit is contained in:
@@ -57,9 +57,14 @@ function toggleScratch() {
|
||||
|
||||
function show() {
|
||||
let windows = getScratchWindows();
|
||||
if (windows.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
TopBar.show();
|
||||
|
||||
windows.slice().reverse()
|
||||
. map(function(meta_window) {
|
||||
.map(function(meta_window) {
|
||||
meta_window.unminimize();
|
||||
meta_window.make_above();
|
||||
meta_window.get_compositor_private().show();
|
||||
|
||||
Reference in New Issue
Block a user