fix scratchpad not disappearing
@@ -4671,7 +4671,8 @@ void togglescratchpad(const Arg *arg) {
selmon->scratchvisible = 1;
for(c = selmon->clients; c; c = c->next) {
- if (c->tags == 1 << 20) {
+ if (c->tags & 1 << 20) {
+ c->tags = 1 << 20;
if (!scratchexists)
scratchexists = 1;
c->issticky = selmon->scratchvisible;
@@ -4686,10 +4687,11 @@ void togglescratchpad(const Arg *arg) {
return;
}
+ arrange(selmon);
if (selmon->scratchvisible) {
for(c = selmon->clients; c; c = c->next) {
- if (c->tags == 1 << 20) {
+ if (c->tags & 1 << 20) {
XRaiseWindow(dpy, c->win);
}
}
