diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2020-08-02 18:46:34 -0500 | 
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2020-08-02 18:46:34 -0500 | 
| commit | 59cd8dec940f4838fa945e520d79946e1dd8d678 (patch) | |
| tree | 87b272a2dadf145a57776c5e101753bf46119725 /dwl.c | |
| parent | ef7a37649c09312f98861bbc52a56ea29e7ae670 (diff) | |
focusclient checks whether oldsel == sel
No need to do it outside the call.
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 9 | 
1 files changed, 2 insertions, 7 deletions
@@ -718,11 +718,8 @@ void  focusmon(const Arg *arg)  {  	Client *sel = selclient(); -	Monitor *m = dirtomon(arg->i); -	if (m == selmon) -		return; -	selmon = m; +	selmon = dirtomon(arg->i);  	focusclient(sel, focustop(selmon), 1);  } @@ -1437,9 +1434,7 @@ setmon(Client *c, Monitor *m, unsigned int newtags)  		c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */  		arrange(m);  	} -	/* Focus can change if c is the top of selmon before or after */ -	if (c == oldsel || c == selclient()) -		focusclient(oldsel, focustop(selmon), 1); +	focusclient(oldsel, focustop(selmon), 1);  }  void  | 
