Improve code of func "focusmon"
This commit is contained in:
parent
ccf2b24de8
commit
e8aa0dfb24
|
@ -578,12 +578,11 @@ void focus(Client *c)
|
|||
|
||||
void focusmon(const Arg *arg)
|
||||
{
|
||||
Monitor *m;
|
||||
if (!mons->next) return;
|
||||
|
||||
Monitor *m;
|
||||
if ((m = dirtomon(arg->i)) == selmon) return;
|
||||
|
||||
if (!mons->next)
|
||||
return;
|
||||
if ((m = dirtomon(arg->i)) == selmon)
|
||||
return;
|
||||
unfocus(selmon->sel, 0);
|
||||
selmon = m;
|
||||
focus(NULL);
|
||||
|
|
Loading…
Reference in New Issue