From: Mikael Magnusson Date: Fri, 19 Feb 2010 21:54:27 +0000 (+0100) Subject: no need to check settings X-Git-Tag: release-3.4.11.1~9 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=29799450e31cf067e9cde6fcee371f8e9cbe9f47;p=dana%2Fopenbox.git no need to check settings it's always allocated, and the next line doesn't check it anyway --- 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)) {