summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-12 06:04:00 +0000
committerDana Jansens <danakj@orodu.net>2007-03-12 06:04:00 +0000
commit85a1a0cfb3e6f57b37d7a7b83132698b2d6cdee3 (patch)
tree2a564932c24677d129fe7b88243f15652297b4ce /openbox/event.c
parent6b7cc88c9d4ae2019f3b8fcd300dd3069f2bc680 (diff)
don't validate inside client_focus. instead, validate before you call it!
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 5d19e897..16ec8e0a 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -433,7 +433,7 @@ static void event_process(const XEvent *ec, gpointer data)
}
}
-#if 0 /* focus debugging stuff */
+#if 1 /* focus debugging stuff */
if (e->type == FocusIn || e->type == FocusOut) {
gint mode = e->xfocus.mode;
gint detail = e->xfocus.detail;
@@ -1287,9 +1287,11 @@ static gboolean focus_delay_func(gpointer data)
ObClient *c = data;
if (focus_client != c) {
- client_focus(c);
- if (config_focus_raise)
- client_raise(c);
+ if (client_validate(c)) {
+ client_focus(c);
+ if (config_focus_raise)
+ client_raise(c);
+ }
}
return FALSE; /* no repeat */
}