[client] x11: fix double initialization of event members

This commit is contained in:
Geoffrey McRae 2021-01-26 00:00:59 +11:00
parent dbb18a6ecb
commit 9674421ce4

View File

@ -106,11 +106,14 @@ static bool x11Init(SDL_SysWMinfo * info)
if (x11.aNetReqFrameExtents) if (x11.aNetReqFrameExtents)
{ {
XEvent reqevent = XEvent reqevent =
{
.xclient =
{ {
.type = ClientMessage, .type = ClientMessage,
.xclient.window = x11.window, .window = x11.window,
.xclient.format = 32, .format = 32,
.xclient.message_type = x11.aNetReqFrameExtents .message_type = x11.aNetReqFrameExtents
}
}; };
XSendEvent(x11.display, DefaultRootWindow(x11.display), False, XSendEvent(x11.display, DefaultRootWindow(x11.display), False,