call checkidleinhibitor() in arrange() and not in focusclient()

This commit is contained in:
Leonardo Hernández Hernández 2022-12-16 18:54:33 -06:00
parent 7b1fe7e5f2
commit 1a3d89e5b2
Failed to generate hash of commit

3
dwl.c
View file

@ -477,6 +477,7 @@ arrange(Monitor *m)
if (m && m->lt[m->sellt]->arrange) if (m && m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m); m->lt[m->sellt]->arrange(m);
motionnotify(0); motionnotify(0);
checkidleinhibitor(NULL);
} }
void void
@ -1226,9 +1227,7 @@ focusclient(Client *c, int lift)
client_activate_surface(old, 0); client_activate_surface(old, 0);
} }
} }
printstatus(); printstatus();
checkidleinhibitor(NULL);
if (!c) { if (!c) {
/* With no client, all we have left is to clear focus */ /* With no client, all we have left is to clear focus */