aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-08-14 07:50:40 -0400
committerGitHub <noreply@github.com>2021-08-14 07:50:40 -0400
commit3f70bbb5c47548579653e5b6af3678ea55455844 (patch)
tree6795205902ab46cd2a68d097deee5a8f1399606b /dwl.c
parent3b05eadeaf5e2de4caf127cfa07642342cccddbc (diff)
parent52e6bf47354b624e220cbff6df33d06ba1c3581e (diff)
Merge pull request #130 from drdonahue/printstatus-fix
Fix excessive printstatus() calls when dmenu is up
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index a2a0b69..9c31de2 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1083,7 +1083,6 @@ focusclient(Client *c, int lift)
selmon = c->mon;
c->isurgent = 0;
}
- printstatus();
/* Deactivate old client if focus is changing */
if (old && (!c || client_surface(c) != old)) {
@@ -1106,6 +1105,8 @@ focusclient(Client *c, int lift)
}
}
+ printstatus();
+
if (!c) {
/* With no client, all we have left is to clear focus */
wlr_seat_keyboard_notify_clear_focus(seat);