From: "Rodolfo García Peñas (kix)" <[email protected]>
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 3d12c50..f0f093d 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
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].