feat: add option scratchpad_cross_monitor

This commit is contained in:
DreamMaoMao 2025-09-24 19:35:12 +08:00
parent eb0395a48d
commit 3a21ef8801
6 changed files with 57 additions and 8 deletions

View file

@ -421,6 +421,8 @@ void restore_minimized(const Arg *arg) {
c->isnamedscratchpad = 0;
setborder_color(c);
arrange(c->mon, false);
focusclient(c, 0);
warp_cursor(c);
return;
}
}
@ -1045,7 +1047,7 @@ void toggle_scratchpad(const Arg *arg) {
return;
wl_list_for_each_safe(c, tmp, &clients, link) {
if (c->mon != selmon) {
if (!scratchpad_cross_monitor && c->mon != selmon) {
continue;
}