projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce2643f
)
focus fallback when focus is on PointerRoot
author
Dana Jansens
<danakj@orodu.net>
Wed, 15 Oct 2003 07:29:17 +0000
(07:29 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 15 Oct 2003 07:29:17 +0000
(07:29 +0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
8554ce9
..
700013b
100644
(file)
--- a/
openbox/event.c
+++ b/
openbox/event.c
@@
-364,7
+364,12
@@
static void event_done(gpointer data)
/* is focus anywhere valid? */
XGetInputFocus(ob_display, &w, &r);
- if (!w || w == RootWindow(ob_display, ob_screen))
+
+#ifdef DEBUG_FOCUS
+ ob_debug("Focus was found on 0x%x revert %d\n", w, r);
+#endif
+
+ if (!w || w == PointerRoot)
focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
}
last = focus_client;