diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-04 17:16:50 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-04 17:16:50 +0000 |
| commit | e0fa57d21c83bbfe87b15224f699bc24628fd89f (patch) | |
| tree | 1f8710e396b5369453232f7c91a0c9d0b0f1ebbd /openbox/focus.c | |
| parent | 9232682ad64c6ee0956a748312b9ca8136434bf3 (diff) | |
allow focus_fallback to query if a client can be focused without changing the focus order on it
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index de98d63b..5909ca77 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -15,6 +15,7 @@ #include <X11/Xlib.h> #include <glib.h> +#include <assert.h> Client *focus_client = NULL; GList **focus_order = NULL; /* these lists are created when screen_startup @@ -213,8 +214,11 @@ void focus_fallback(FallbackType type) for (sit = old->group->members; sit; sit = sit->next) if (sit->data == it->data) if (sit->data != old && client_normal(sit->data)) - if (client_focus(sit->data)) + if (client_can_focus(sit->data)) { + gboolean r = client_focus(sit->data); + assert(r); return; + } } } |
