Raise the window on EWMH request.
Additionally to handing over the focus to the window this commit raises the window too. Otherwise a window which is hidden below other windows can request the focus and because the window is not fully exposed, the user is unaware which window has the input focus and is actually receiving the keystrokes. Signed-off-by: Stefan Haller <haliner@googlemail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
bd05219a72
commit
ca73777017
4
ewmh.c
4
ewmh.c
|
@ -415,8 +415,10 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
|
||||||
}
|
}
|
||||||
else if(ev->type == _NET_ACTIVE_WINDOW)
|
else if(ev->type == _NET_ACTIVE_WINDOW)
|
||||||
{
|
{
|
||||||
if((c = client_getbywin(ev->window)))
|
if((c = client_getbywin(ev->window))) {
|
||||||
client_focus(c);
|
client_focus(c);
|
||||||
|
client_raise(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue