~ruther/dwl

4e06b4af4012bb6185ab914bd515b36d0aef41d4 — Rutherther 8 months ago 3227713 v0.7/namedscratchpads
fix: move scratch to monitor if needed
1 files changed, 8 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +8 -2
@@ 1461,7 1461,10 @@ focusortogglematchingscratch(const Arg *arg)
				}
			} else {
				// show
				c->tags = selmon->tagset[selmon->seltags];
        if (c->mon == selmon)
          c->tags = selmon->tagset[selmon->seltags];
        else
          setmon(c, selmon, 0);
				// focus
				focusclient(c, 1);
			}


@@ 1506,7 1509,10 @@ focusortogglescratch(const Arg *arg)
			}
		} else {
			// show
			c->tags = selmon->tagset[selmon->seltags];
      if (c->mon == selmon)
        c->tags = selmon->tagset[selmon->seltags];
      else
        setmon(c, selmon, 0);
			focusclient(c, 1);
		}
		arrange(selmon);

Do not follow this link