[X2Go-Commits] [nx-libs] 40/429: Screen.c: drop unneccessary mask variable

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:03 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit d7a091a6402f625c9213b6d403b8e19f0e133b49
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Tue May 26 00:46:18 2020 +0200

    Screen.c: drop unneccessary mask variable
---
 nx-X11/programs/Xserver/hw/nxagent/Screen.c | 12 +++---------
 1 file 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();

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list