2acfb3a61f593339e650775ceba18eff3702826d — jona 4 months ago 943e0c0
dont focus virtual keyboard while using it

"focus" is bit ambiguous, as dwm keeps its own "selected client" apart from
x's inputfocus and active window. This change prevents dwm to select the
keyboard when pressing on it.
In effect the windowtitle in the bar doesn't get overwritten by the keyboard
and the bordercolors don't change, which i think is the correct behavior.
The inputfocus is already denied because svkbd reports WM_Hints->input->false
to the windowmanager, which is why the keyboard was working before.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
1 files changed, 4 insertions(+), 2 deletions(-)

M dwm.c
M dwm.c => dwm.c +4 -2
@@ 642,8 642,10 @@ buttonpress(XEvent *e)
		else // Focus clicked tab bar item
			bartabcalculate(selmon, x, TEXTW(stext) - lrpad + 2, ev->x, battabclick);
	} else if ((c = wintoclient(ev->window))) {
		if (!c->iskbd) {
		XAllowEvents(dpy, ReplayPointer, CurrentTime);
		click = ClkClientWin;