Commit 80a6bed7 authored by Sam Lantinga's avatar Sam Lantinga

Zero any fields not explicitly filled in.

parent 7f098305
...@@ -381,6 +381,7 @@ X11_DispatchEvent(_THIS) ...@@ -381,6 +381,7 @@ X11_DispatchEvent(_THIS)
req->requestor, req->target); req->requestor, req->target);
#endif #endif
SDL_zero(sevent);
sevent.xany.type = SelectionNotify; sevent.xany.type = SelectionNotify;
sevent.xselection.selection = req->selection; sevent.xselection.selection = req->selection;
sevent.xselection.target = None; sevent.xselection.target = None;
......
...@@ -972,6 +972,7 @@ X11_SetWindowMaximized(_THIS, SDL_Window * window, SDL_bool maximized) ...@@ -972,6 +972,7 @@ X11_SetWindowMaximized(_THIS, SDL_Window * window, SDL_bool maximized)
if (X11_IsWindowMapped(_this, window)) { if (X11_IsWindowMapped(_this, window)) {
XEvent e; XEvent e;
SDL_zero(e);
e.xany.type = ClientMessage; e.xany.type = ClientMessage;
e.xclient.message_type = _NET_WM_STATE; e.xclient.message_type = _NET_WM_STATE;
e.xclient.format = 32; e.xclient.format = 32;
......
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