From 33cc5724028121753bfc6e4fc51f3027864f9678 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 28 Mar 2007 02:00:10 +0000 Subject: drop some wasted client_validates. --- openbox/focus.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'openbox/focus.c') 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"); -- cgit v1.2.3