From 361bf6af5c7de09f30f3cf4a220b3f84a3fe451d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 May 2007 04:32:59 +0000 Subject: simplify focus handling a bit. no need to listen to focus going to the frame because if it ever does that, the window is unmapping and the frame will just unmap and send it to root. make focus fallback a lil more robust, it checks for errors when it sets focus on the window, and if an error occured it will focus the next option. --- openbox/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/screen.c') diff --git a/openbox/screen.c b/openbox/screen.c index 45246297..23821301 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -942,7 +942,7 @@ void screen_show_desktop(gboolean show, ObClient *show_only) ObClient *c = it->data; if (c->type == OB_CLIENT_TYPE_DESKTOP && (c->desktop == screen_desktop || c->desktop == DESKTOP_ALL) && - client_focus(it->data)) + client_focus(it->data, FALSE)) break; } } -- cgit v1.2.3