diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-01-05 01:19:40 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-02-05 12:47:46 +0100 |
commit | 1c020ea9ce571fef7a893b73e866b3dfa45da9d7 (patch) | |
tree | 1529d733e8e2dc1039fbd5b53070efc44d0dca47 /nx-X11/programs | |
parent | 1997c04ab2571db44d5a80fa977a794229857d7f (diff) | |
download | nx-libs-1c020ea9ce571fef7a893b73e866b3dfa45da9d7.tar.gz nx-libs-1c020ea9ce571fef7a893b73e866b3dfa45da9d7.tar.bz2 nx-libs-1c020ea9ce571fef7a893b73e866b3dfa45da9d7.zip |
Events.c: change scope of XButtonEvent struct and clear it before use
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index cf42d84fb..315b6572e 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -3958,10 +3958,11 @@ void nxagentDeactivatePointerGrab() { GrabPtr grab = inputInfo.pointer -> grab; - XButtonEvent X; - if (grab) { + XButtonEvent X; + memset(&X, 0, sizeof(XButtonEvent)); + X.type = ButtonRelease; X.serial = 0; X.send_event = FALSE; |