1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

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.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-10-23 23:59:48 +02:00
committed by Carlos R. Mafra
parent a6d3317a9a
commit e71f78f4fe

View 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