Commit 1c020ea9 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Events.c: change scope of XButtonEvent struct and clear it before use

parent 1997c04a
...@@ -3958,10 +3958,11 @@ void nxagentDeactivatePointerGrab() ...@@ -3958,10 +3958,11 @@ void nxagentDeactivatePointerGrab()
{ {
GrabPtr grab = inputInfo.pointer -> grab; GrabPtr grab = inputInfo.pointer -> grab;
XButtonEvent X;
if (grab) if (grab)
{ {
XButtonEvent X;
memset(&X, 0, sizeof(XButtonEvent));
X.type = ButtonRelease; X.type = ButtonRelease;
X.serial = 0; X.serial = 0;
X.send_event = FALSE; X.send_event = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment