summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c7
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");