mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Block access to disabled monitor
Before this, pressing mod+comma or mod+period (focusmon function) moved the focus to disabed monitors. Now, all disabled monitors are skipped
This commit is contained in:
parent
388ab9df2f
commit
62fb4c086e
1 changed files with 6 additions and 4 deletions
10
dwl.c
10
dwl.c
|
@ -1087,10 +1087,12 @@ focusclient(Client *old, Client *c, int lift)
|
||||||
void
|
void
|
||||||
focusmon(const Arg *arg)
|
focusmon(const Arg *arg)
|
||||||
{
|
{
|
||||||
Client *sel = selclient();
|
Client *sel;
|
||||||
|
do {
|
||||||
selmon = dirtomon(arg->i);
|
sel = selclient();
|
||||||
focusclient(sel, focustop(selmon), 1);
|
selmon = dirtomon(arg->i);
|
||||||
|
focusclient(sel, focustop(selmon), 1);
|
||||||
|
} while (!selmon->wlr_output->enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue