diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-15 07:29:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-15 07:29:17 +0000 |
| commit | 53a259f60d932eb963ff0105e77084bab40f2459 (patch) | |
| tree | 753aa4167b248d5e4e9cb950be5ae4e4d0ec8a14 | |
| parent | ce2643f55bafecd84bb2fd6d6e72537f2921545c (diff) | |
focus fallback when focus is on PointerRoot
| -rw-r--r-- | openbox/event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c index 8554ce93..700013b8 100644 --- 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; |
