aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Events.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 23:07:23 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commit84bad7324f148f323ac6eaff39c38eaccb6539a5 (patch)
treee0f917b2a16e51f015aced22566754e7cdf2720f /nx-X11/programs/Xserver/hw/nxagent/Events.c
parentf4adcbc596e3563b3fcad75e862b7be3a969f969 (diff)
downloadnx-libs-84bad7324f148f323ac6eaff39c38eaccb6539a5.tar.gz
nx-libs-84bad7324f148f323ac6eaff39c38eaccb6539a5.tar.bz2
nx-libs-84bad7324f148f323ac6eaff39c38eaccb6539a5.zip
nxagent: rework some Boolean checks
nxagentWindowTopLevel() and nxagentNeedConnectionChange() return Boolean nxagentPixmapIsVirtual() and nxagentIsShmPixmap(), too.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Events.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index 704bc6995..f371363a6 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -2009,7 +2009,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
if ((pWin = nxagentRootlessTopLevelWindow(X.xunmap.window)) != NULL ||
((pWin = nxagentWindowPtr(X.xunmap.window)) != NULL &&
- nxagentWindowTopLevel(pWin) == 1))
+ nxagentWindowTopLevel(pWin)))
{
nxagentScreenTrap = True;
@@ -2040,7 +2040,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
if ((pWin = nxagentRootlessTopLevelWindow(X.xmap.window)) != NULL ||
((pWin = nxagentWindowPtr(X.xmap.window)) != NULL &&
- nxagentWindowTopLevel(pWin) == 1))
+ nxagentWindowTopLevel(pWin)))
{
nxagentScreenTrap = True;