Code not needed at wWindowSetupInitialAttributes
authorRodolfo García Peñas (kix) <kix@kix.es>
Tue, 23 Oct 2012 21:59:48 +0000 (23 23:59 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 28 Oct 2012 10:58:42 +0000 (28 10:58 +0000)
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

index 3d12c50..f0f093d 100644 (file)
@@ -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