aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Window.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-05-10 00:29:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-08-22 15:34:18 +0200
commit129d1cc910227717ec113a9008693afb741047ab (patch)
tree455941dd589ae349e522ec9d3883b8e0f454d4d0 /nx-X11/programs/Xserver/hw/nxagent/Window.c
parentc0bef5e3962e7f2f056ff7c4b0798099ac867293 (diff)
downloadnx-libs-129d1cc910227717ec113a9008693afb741047ab.tar.gz
nx-libs-129d1cc910227717ec113a9008693afb741047ab.tar.bz2
nx-libs-129d1cc910227717ec113a9008693afb741047ab.zip
refactor nxagentGet(Default)EventMask
Fixes ArcticaProject/nx-libs#691.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Window.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index b12fe76de..5373d4889 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -345,10 +345,7 @@ FIXME: We need to set save under on the real display?
if (mask & CWEventMask)
{
- /* Assume that the mask fits in int... broken on Big Endian 64bit systems. */
- Mask tmp_mask = attributes.event_mask;
- nxagentGetEventMask(pWin, &tmp_mask);
- attributes.event_mask = (int)tmp_mask;
+ attributes.event_mask = nxagentGetEventMask(pWin);
}
#ifdef WARNING
else
@@ -2970,10 +2967,7 @@ FIXME: Do we need to set save unders attribute here?
if (mask & CWEventMask)
{
- /* Assume that the mask fits in int... broken on Big Endian 64bit systems. */
- Mask tmp_mask = attributes.event_mask;
- nxagentGetEventMask(pWin, &tmp_mask);
- attributes.event_mask = (int)tmp_mask;
+ attributes.event_mask = nxagentGetEventMask(pWin);
}
#ifdef WARNING
else
@@ -3446,10 +3440,7 @@ void nxagentSetTopLevelEventMask(pWin)
if (nxagentOption(Rootless) && nxagentWindowTopLevel(pWin))
{
- /* Assume that the mask fits in int... broken on Big Endian 64bit systems. */
- Mask tmp_mask = attributes.event_mask = NoEventMask;
- nxagentGetEventMask(pWin, &tmp_mask);
- attributes.event_mask = (int)tmp_mask;
+ attributes.event_mask = nxagentGetEventMask(pWin);
XChangeWindowAttributes(nxagentDisplay, nxagentWindow(pWin), mask, &attributes);
}