From 29799450e31cf067e9cde6fcee371f8e9cbe9f47 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 19 Feb 2010 22:54:27 +0100 Subject: [PATCH] no need to check settings it's always allocated, and the next line doesn't check it anyway --- openbox/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/client.c b/openbox/client.c index a86bb3a1..4d54b38e 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -372,7 +372,7 @@ void client_manage(Window window, ObPrompt *prompt) /* NET_WM_USER_TIME 0 when mapping means don't focus */ (user_time != 0) && /* this checks for focus=false for the window */ - (!settings || settings->focus != 0) && + settings->focus != 0 && focus_valid_target(self, FALSE, FALSE, TRUE, FALSE, FALSE, settings->focus == 1)) { -- 2.34.1