diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-05-26 00:46:18 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-17 22:38:05 +0200 |
commit | d7a091a6402f625c9213b6d403b8e19f0e133b49 (patch) | |
tree | 09669fa0cec1ca3b8873da39eb48190daebbd60a | |
parent | d07c788813d6e72882e9a30821007be49157adea (diff) | |
download | nx-libs-d7a091a6402f625c9213b6d403b8e19f0e133b49.tar.gz nx-libs-d7a091a6402f625c9213b6d403b8e19f0e133b49.tar.bz2 nx-libs-d7a091a6402f625c9213b6d403b8e19f0e133b49.zip |
Screen.c: drop unneccessary mask variable
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Screen.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index 494750038..c7e158636 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -846,7 +846,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int depthIndex; unsigned long valuemask; XSetWindowAttributes attributes; - Mask mask; Bool resetAgentPosition = False; VisualID defaultVisual; @@ -1714,9 +1713,7 @@ N/A { nxagentDefaultWindows[pScreen->myNum] = nxagentParentWindow; - mask = nxagentGetDefaultEventMask(); - - XSelectInput(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], mask); + XSelectInput(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], nxagentGetDefaultEventMask()); } else { @@ -1757,8 +1754,7 @@ N/A if (nxagentOption(Rootless) == 0) { valuemask = CWEventMask; - mask = PointerMotionMask; - attributes.event_mask = mask; + attributes.event_mask = PointerMotionMask; nxagentInputWindows[pScreen->myNum] = XCreateWindow(nxagentDisplay, @@ -1845,9 +1841,7 @@ N/A strlen("X-AGENT")); } - mask = nxagentGetDefaultEventMask(); - - XSelectInput(nxagentDisplay, nxagentFullscreenWindow, mask); + XSelectInput(nxagentDisplay, nxagentFullscreenWindow, nxagentGetDefaultEventMask()); } XSizeHints* sizeHints = XAllocSizeHints(); |