summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 0a5bf2d1..f37c02e9 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -894,7 +894,7 @@ void screen_show_desktop(gboolean show)
/* focus desktop */
for (it = focus_order[screen_desktop]; it; it = g_list_next(it))
if (((ObClient*)it->data)->type == OB_CLIENT_TYPE_DESKTOP &&
- client_focus(it->data))
+ client_validate(it->data) && client_focus(it->data))
break;
} else {
focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);