Merge pull request #130 from drdonahue/printstatus-fix

Fix excessive printstatus() calls when dmenu is up
main
Devin J. Pohly 2021-08-14 07:50:40 -04:00 committed by GitHub
commit 3f70bbb5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
dwl.c
View File

@ -1083,7 +1083,6 @@ focusclient(Client *c, int lift)
selmon = c->mon; selmon = c->mon;
c->isurgent = 0; c->isurgent = 0;
} }
printstatus();
/* Deactivate old client if focus is changing */ /* Deactivate old client if focus is changing */
if (old && (!c || client_surface(c) != old)) { if (old && (!c || client_surface(c) != old)) {
@ -1106,6 +1105,8 @@ focusclient(Client *c, int lift)
} }
} }
printstatus();
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 */
wlr_seat_keyboard_notify_clear_focus(seat); wlr_seat_keyboard_notify_clear_focus(seat);