don't regive focus to already focused window
This commit is contained in:
parent
00f7cd006a
commit
82d9cec79d
5
event.c
5
event.c
|
@ -231,7 +231,10 @@ handle_event_enternotify(XEvent * e)
|
|||
|
||||
if(ev->mode != NotifyNormal)
|
||||
return;
|
||||
if((c = get_client_bywin(globalconf.clients, ev->window)) && globalconf.screens[c->screen].sloppy_focus)
|
||||
|
||||
if((c = get_client_bywin(globalconf.clients, ev->window))
|
||||
&& globalconf.screens[c->screen].sloppy_focus
|
||||
&& c != globalconf.focus->client)
|
||||
{
|
||||
focus(c, ev->same_screen, c->screen);
|
||||
curtags = get_current_tags(c->screen);
|
||||
|
|
Loading…
Reference in New Issue