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:
committed by
Carlos R. Mafra
parent
a6d3317a9a
commit
e71f78f4fe
@@ -353,16 +353,12 @@ void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
|
|||||||
} else {
|
} else {
|
||||||
int tmp_workspace = -1;
|
int tmp_workspace = -1;
|
||||||
int tmp_level = INT_MIN; /* INT_MIN is never used by the window levels */
|
int tmp_level = INT_MIN; /* INT_MIN is never used by the window levels */
|
||||||
Bool check;
|
|
||||||
|
|
||||||
check = False;
|
|
||||||
|
|
||||||
#ifdef MWM_HINTS
|
#ifdef MWM_HINTS
|
||||||
wMWMCheckClientHints(wwin);
|
wMWMCheckClientHints(wwin);
|
||||||
#endif /* MWM_HINTS */
|
#endif /* MWM_HINTS */
|
||||||
|
|
||||||
if (!check)
|
wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace);
|
||||||
check = wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace);
|
|
||||||
|
|
||||||
/* window levels are between INT_MIN+1 and INT_MAX, so if we still
|
/* 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
|
* have INT_MIN that means that no window level was requested. -Dan
|
||||||
|
|||||||
Reference in New Issue
Block a user