diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-05-25 23:49:25 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-17 22:38:05 +0200 |
commit | 601a57849582ff635289e84bf919ebce8fd2fbcf (patch) | |
tree | fec176e031e4071b8009b5dc853f755ea91ee29e /nx-X11/programs/Xserver | |
parent | 2a92ed0f53b15d15e3b309f9ebc992ee98eb426e (diff) | |
download | nx-libs-601a57849582ff635289e84bf919ebce8fd2fbcf.tar.gz nx-libs-601a57849582ff635289e84bf919ebce8fd2fbcf.tar.bz2 nx-libs-601a57849582ff635289e84bf919ebce8fd2fbcf.zip |
Window.c: simplify setting of isMapped private var
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Window.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c index 7620284fb..94a1bb9ee 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Window.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c @@ -380,6 +380,8 @@ Bool nxagentCreateWindow(WindowPtr pWin) if (nxagentOption(Rootless) == 1) { + nxagentWindowPriv(pWin) -> isMapped = 0; + if (pWin != nxagentRootlessWindow) { WindowPtr pParent = pWin -> parent; @@ -388,14 +390,6 @@ Bool nxagentCreateWindow(WindowPtr pWin) { nxagentWindowPriv(pWin) -> isMapped = 1; } - else - { - nxagentWindowPriv(pWin) -> isMapped = 0; - } - } - else - { - nxagentWindowPriv(pWin) -> isMapped = 0; } } |