If the window did not received focus, restack it
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
762645ca32
commit
536700b674
1
event.c
1
event.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue