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 <hali...@googlemail.com>
---
 ewmh.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ewmh.c b/ewmh.c
index 92bd6e8..3e1e3cc 100644
--- a/ewmh.c
+++ b/ewmh.c
@@ -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;
-- 
1.8.1.1


-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to