From 82d9cec79dbcc57730109a78da490b5868e4d91e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 24 Jan 2008 18:31:44 +0100 Subject: [PATCH] don't regive focus to already focused window --- event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event.c b/event.c index 1b7ba4c5..9676de73 100644 --- a/event.c +++ b/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);