dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit cd6683e6a1a9afdbb397433658ba85925dbf437c
parent 88f0ea343bbb103fed819c4d3febec4d7044a246
Author: Devin J. Pohly <djpohly@gmail.com>
Date:   Sun, 26 Apr 2020 14:11:44 -0500

fix refocus on sendmon

Diffstat:
Mdwl.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -1057,6 +1057,7 @@ sendmon(Client *c, Monitor *m) { if (c->mon == m) return; + int hadfocus = (c == selclient()); c->mon = m; /* Make sure window actually overlaps with the monitor */ applybounds(c, &c->mon->m); @@ -1064,7 +1065,7 @@ sendmon(Client *c, Monitor *m) wlr_surface_send_enter(c->xdg_surface->surface, c->mon->wlr_output); c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ - if (c == selclient()) + if (hadfocus) refocus(); }