From 536700b674a84dcb6865eb9dcd196c2bd912ee60 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Mar 2008 11:28:56 +0100 Subject: [PATCH] If the window did not received focus, restack it Signed-off-by: Julien Danjou --- event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event.c b/event.c index 974d8b97..e01c6ce4 100644 --- a/event.c +++ b/event.c @@ -127,7 +127,8 @@ event_handle_buttonpress(XEvent *e) if((c = client_get_bywin(globalconf.clients, ev->window))) { - client_stack(c); + if(!client_focus(c, c->screen, True)) + client_stack(c); if(CLEANMASK(ev->state) == NoSymbol && ev->button == Button1) {