summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-09 18:49:14 +0000
committerDana Jansens <danakj@orodu.net>2003-10-09 18:49:14 +0000
commitbb5294199982817a84cd6b5c1197115389cbad56 (patch)
treea069d442c65d26c1bf7248411a7c18bb98580ee9 /openbox/client.c
parent8e34732b3a6d19c64addc6e7f8cdc7bbf6293f1f (diff)
cancel focus delays when the user runs a focus (or focus cycle) action, and when focusing new windows
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 7 insertions, 1 deletions
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 */