~ruther/dwl

3f70bbb5c47548579653e5b6af3678ea55455844 — Devin J. Pohly 3 years ago 3b05ead + 52e6bf4
Merge pull request #130 from drdonahue/printstatus-fix

Fix excessive printstatus() calls when dmenu is up
1 files changed, 2 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +2 -1
@@ 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);

Do not follow this link