aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Window.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 19:20:56 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commitde5eb54c65a15949e9631ded61d1ca5e16f7c8e1 (patch)
treed94ab3b717b11a9e34cad826276a79808d2f6cf6 /nx-X11/programs/Xserver/hw/nxagent/Window.c
parentd545afdf3967b0305c1215bb9f8a545b81fc24e8 (diff)
downloadnx-libs-de5eb54c65a15949e9631ded61d1ca5e16f7c8e1.tar.gz
nx-libs-de5eb54c65a15949e9631ded61d1ca5e16f7c8e1.tar.bz2
nx-libs-de5eb54c65a15949e9631ded61d1ca5e16f7c8e1.zip
nxagent: make Fullscreen and AllScreens Booleans
There's no need/sense in having a tri-state with the third state being UNDEFINED.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Window.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index 2dea31af0..ab61c101b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -2500,7 +2500,7 @@ void nxagentRefreshWindows(WindowPtr pWin)
void nxagentUnmapWindows(void)
{
- if (nxagentOption(Fullscreen) == 1)
+ if (nxagentOption(Fullscreen))
{
for (int i = 0; i < screenInfo.numScreens; i++)
{
@@ -2556,7 +2556,7 @@ void nxagentMapDefaultWindows(void)
XMapWindow(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum]);
- if (nxagentOption(Fullscreen) == 1 && nxagentWMIsRunning)
+ if (nxagentOption(Fullscreen) && nxagentWMIsRunning)
{
nxagentMaximizeToFullScreen(pScreen);
}