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:
Stefan Haller 2013-01-20 15:35:10 +01:00 committed by Uli Schlachter
parent bd05219a72
commit ca73777017
1 changed files with 3 additions and 1 deletions

4
ewmh.c
View File

@ -415,8 +415,10 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
}
else if(ev->type == _NET_ACTIVE_WINDOW)
{
if((c = client_getbywin(ev->window)))
if((c = client_getbywin(ev->window))) {
client_focus(c);
client_raise(c);
}
}
return 0;