From 474a40754b68fe159d5e3063319a20396b2912c7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Sep 2003 08:02:16 +0000 Subject: [PATCH] only do sloppy focus/raise if the client is not already focused --- openbox/event.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openbox/event.c b/openbox/event.c index 6503ba0a..91802496 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1259,9 +1259,11 @@ static gboolean focus_delay_func(gpointer data) { ObClient *c = data; - client_focus(c); - if (config_focus_raise) - client_raise(c); + if (focus_client != c) { + client_focus(c); + if (config_focus_raise) + client_raise(c); + } return FALSE; /* no repeat */ } -- 2.39.2