Commit 17d5e62b authored by Ulrich Sibiller's avatar Ulrich Sibiller

Events.c: use designated initializer in nxagentDeactivatePointerGrab

parent 5cb49714
...@@ -4011,21 +4011,23 @@ void nxagentDeactivatePointerGrab(void) ...@@ -4011,21 +4011,23 @@ void nxagentDeactivatePointerGrab(void)
if (grab) if (grab)
{ {
XButtonEvent X; XButtonEvent X = {
memset(&X, 0, sizeof(XButtonEvent)); .type = ButtonRelease,
.serial = 0,
X.type = ButtonRelease; .send_event = FALSE,
X.serial = 0; .time = currentTime.milliseconds,
X.send_event = FALSE; .display = nxagentDisplay,
X.time = currentTime.milliseconds; .window = nxagentWindow(grab -> window),
X.display = nxagentDisplay; .root = RootWindow(nxagentDisplay, 0),
X.window = nxagentWindow(grab -> window); .subwindow = 0,
X.root = RootWindow(nxagentDisplay, 0); .x = 0,
X.subwindow = 0; .y = 0,
X.x = X.y = X.x_root = X.y_root = 0; .x_root = 0,
X.state = 0x100; .y_root = 0,
X.button = 1; .state = 0x100,
X.same_screen = TRUE; .button = 1,
.same_screen = TRUE,
};
XPutBackEvent(nxagentDisplay, (XEvent*)&X); XPutBackEvent(nxagentDisplay, (XEvent*)&X);
} }
......
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