From 63f748aa3fac4d3ed004a2c5343a51c3a046e21d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 8 Jan 2010 14:40:29 -0500 Subject: Make focus_valid_target() take a desktop argument. So you can find valid targets on desktops other than the currently visible one --- openbox/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 4d8f4e77..98a27dc9 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -290,7 +290,8 @@ void client_manage(Window window, ObPrompt *prompt) (user_time != 0) && /* this checks for focus=false for the window */ (!settings || settings->focus != 0) && - focus_valid_target(self, FALSE, FALSE, TRUE, FALSE, FALSE, + focus_valid_target(self, self->desktop, + FALSE, FALSE, TRUE, FALSE, FALSE, settings->focus == 1)) { activate = TRUE; -- cgit v1.2.3