don't regive focus to already focused window

This commit is contained in:
Julien Danjou 2008-01-24 18:31:44 +01:00
parent 00f7cd006a
commit 82d9cec79d
1 changed files with 4 additions and 1 deletions

View File

@ -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);