mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
quick keyboard focus fix for clients that neither populate wmhints nor wmprotocols, like rdesktop; focus needs to be re-visited
This commit is contained in:
parent
b5915eb989
commit
c1bc6d37b3
3
client.c
3
client.c
@ -211,7 +211,8 @@ client_setactive(struct client_ctx *cc, int fg)
|
|||||||
|
|
||||||
if (fg) {
|
if (fg) {
|
||||||
XInstallColormap(X_Dpy, cc->colormap);
|
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,
|
XSetInputFocus(X_Dpy, cc->win,
|
||||||
RevertToPointerRoot, CurrentTime);
|
RevertToPointerRoot, CurrentTime);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user