From bb5294199982817a84cd6b5c1197115389cbad56 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 9 Oct 2003 18:49:14 +0000 Subject: cancel focus delays when the user runs a focus (or focus cycle) action, and when focusing new windows --- openbox/client.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index b562283b..feaa24df 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -359,7 +359,13 @@ void client_manage(Window window) a window maps since its not based on an action from the user like clicking a window to activate is. so keep the new window out of the way but do focus it. */ - if (activate) client_focus(self); + if (activate) { + /* if using focus_delay, stop the timer now so that focus doesn't go + moving on us */ + event_halt_focus_delay(); + + client_focus(self); + } /* client_activate does this but we aret using it so we have to do it here as well */ -- cgit v1.2.3