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
3
event.c
3
event.c
|
@ -127,7 +127,8 @@ event_handle_buttonpress(XEvent *e)
|
||||||
|
|
||||||
if((c = client_get_bywin(globalconf.clients, ev->window)))
|
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
|
if(CLEANMASK(ev->state) == NoSymbol
|
||||||
&& ev->button == Button1)
|
&& ev->button == Button1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue