diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-12 05:57:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-12 05:57:30 +0000 |
| commit | 6b7cc88c9d4ae2019f3b8fcd300dd3069f2bc680 (patch) | |
| tree | d7c7d9f72e187618e3e5051e334bb334915df1c7 /openbox/client.c | |
| parent | 3a33642be4be34d57b355b273461e49549cdf554 (diff) | |
validate clients before trying to focus them in fallback
also validate before trying to set the focus on a window
this should fix those crashes, and should just be better over all
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index e4bef71d..7e936036 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2937,6 +2937,9 @@ gboolean client_focus(ObClient *self) /* choose the correct target */ self = client_focus_target(self); + if (!client_validate(self)) + return FALSE; + if (!client_can_focus(self)) { if (!self->frame->visible) { /* update the focus lists */ |
