If the window did not received focus, restack it

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-25 11:28:56 +01:00
parent 762645ca32
commit 536700b674
1 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,7 @@ event_handle_buttonpress(XEvent *e)
if((c = client_get_bywin(globalconf.clients, ev->window))) if((c = client_get_bywin(globalconf.clients, ev->window)))
{ {
if(!client_focus(c, c->screen, True))
client_stack(c); client_stack(c);
if(CLEANMASK(ev->state) == NoSymbol if(CLEANMASK(ev->state) == NoSymbol
&& ev->button == Button1) && ev->button == Button1)