From e71f78f4fe2e9280f22f78b889909cc8e0bc3b68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Tue, 23 Oct 2012 23:59:48 +0200 Subject: [PATCH] Code not needed at wWindowSetupInitialAttributes The variable "check" is always False, so the if (!False) is always True and the function wNETWMCheckClientHints is always called. The variable check is not used anymore, so the variable check can be removed. --- src/window.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/window.c b/src/window.c index 3d12c50b..f0f093d7 100644 --- a/src/window.c +++ b/src/window.c @@ -353,16 +353,12 @@ void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace) } else { int tmp_workspace = -1; int tmp_level = INT_MIN; /* INT_MIN is never used by the window levels */ - Bool check; - - check = False; #ifdef MWM_HINTS wMWMCheckClientHints(wwin); #endif /* MWM_HINTS */ - if (!check) - check = wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace); + wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace); /* window levels are between INT_MIN+1 and INT_MAX, so if we still * have INT_MIN that means that no window level was requested. -Dan -- 2.11.4.GIT