Commit 15843955 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Window.c: improve Bool usage

parent 7b8aef83
...@@ -310,7 +310,7 @@ Bool nxagentCreateWindow(pWin) ...@@ -310,7 +310,7 @@ Bool nxagentCreateWindow(pWin)
/* /*
FIXME: We need to set save under on the real display? FIXME: We need to set save under on the real display?
*/ */
if (nxagentSaveUnder == True) if (nxagentSaveUnder)
{ {
mask |= CWSaveUnder; mask |= CWSaveUnder;
attributes.save_under = False; attributes.save_under = False;
...@@ -749,7 +749,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn) ...@@ -749,7 +749,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
return; return;
} }
if (switchOn == 0) if (!switchOn)
{ {
nxagentWMDetect(); nxagentWMDetect();
...@@ -793,7 +793,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn) ...@@ -793,7 +793,7 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
XSendEvent(nxagentDisplay, DefaultRootWindow(nxagentDisplay), False, XSendEvent(nxagentDisplay, DefaultRootWindow(nxagentDisplay), False,
SubstructureRedirectMask, &e); SubstructureRedirectMask, &e);
if (switchOn == 1) if (switchOn)
{ {
nxagentFullscreenWindow = nxagentDefaultWindows[pScreen -> myNum]; nxagentFullscreenWindow = nxagentDefaultWindows[pScreen -> myNum];
...@@ -2683,7 +2683,7 @@ void nxagentDisconnectWindow(void * p0, XID x1, void * p2) ...@@ -2683,7 +2683,7 @@ void nxagentDisconnectWindow(void * p0, XID x1, void * p2)
nxagentDisconnectCursor(pCursor, (XID)0, pBool); nxagentDisconnectCursor(pCursor, (XID)0, pBool);
if (*pBool == False) if (!*pBool)
{ {
#ifdef WARNING #ifdef WARNING
fprintf(stderr, "nxagentDisconnectWindow: WARNING failed disconnection of cursor at [%p]" fprintf(stderr, "nxagentDisconnectWindow: WARNING failed disconnection of cursor at [%p]"
...@@ -2937,7 +2937,7 @@ static void nxagentReconnectWindow(void * param0, XID param1, void * data_buffer ...@@ -2937,7 +2937,7 @@ static void nxagentReconnectWindow(void * param0, XID param1, void * data_buffer
/* /*
FIXME: Do we need to set save unders attribute here? FIXME: Do we need to set save unders attribute here?
*/ */
if (nxagentSaveUnder == True) if (nxagentSaveUnder)
{ {
mask |= CWSaveUnder; mask |= CWSaveUnder;
attributes.save_under = pWin->saveUnder; attributes.save_under = pWin->saveUnder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment