From c1bc6d37b385ff4dad1582583fd21f2c45b2c168 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 5 Nov 2013 00:55:42 +0000 Subject: quick keyboard focus fix for clients that neither populate wmhints nor wmprotocols, like rdesktop; focus needs to be re-visited --- client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 74fafbc..6c9581d 100644 --- a/client.c +++ b/client.c @@ -211,7 +211,8 @@ client_setactive(struct client_ctx *cc, int fg) if (fg) { XInstallColormap(X_Dpy, cc->colormap); - if (cc->flags & CLIENT_INPUT) { + if ((cc->flags & CLIENT_INPUT) || + ((cc->xproto & _WM_TAKE_FOCUS) == 0)) { XSetInputFocus(X_Dpy, cc->win, RevertToPointerRoot, CurrentTime); } -- cgit 1.4.1