diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-28 02:00:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-28 02:00:10 +0000 |
| commit | 33cc5724028121753bfc6e4fc51f3027864f9678 (patch) | |
| tree | c31489029b6facb77394b14293f0f870271f7406 /openbox/focus.c | |
| parent | d20f84f5ded581c57df5904c6fa550dac05ad036 (diff) | |
drop some wasted client_validates.
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 6652c5de..1e343dfa 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -212,8 +212,7 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old) { if ((target = client_under_pointer())) if (allow_refocus || target != old) - if (client_normal(target) && client_can_focus(target) && - client_validate(target)) { + if (client_normal(target) && client_can_focus(target)) { ob_debug("found in pointer stuff\n"); return target; } @@ -254,8 +253,8 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old) a splashscreen or a desktop window (save the desktop as a backup fallback though) */ - if (client_can_focus(c) && client_validate(c) && - c->desktop == screen_desktop && !c->iconic) + if (client_can_focus(c) && c->desktop == screen_desktop && + !c->iconic) { if (client_normal(c)) { ob_debug("found in focus order\n"); |
