mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 01:35:39 -05:00
Zero any fields not explicitly filled in.
This commit is contained in:
@@ -381,6 +381,7 @@ X11_DispatchEvent(_THIS)
|
||||
req->requestor, req->target);
|
||||
#endif
|
||||
|
||||
SDL_zero(sevent);
|
||||
sevent.xany.type = SelectionNotify;
|
||||
sevent.xselection.selection = req->selection;
|
||||
sevent.xselection.target = None;
|
||||
|
||||
@@ -972,6 +972,7 @@ X11_SetWindowMaximized(_THIS, SDL_Window * window, SDL_bool maximized)
|
||||
if (X11_IsWindowMapped(_this, window)) {
|
||||
XEvent e;
|
||||
|
||||
SDL_zero(e);
|
||||
e.xany.type = ClientMessage;
|
||||
e.xclient.message_type = _NET_WM_STATE;
|
||||
e.xclient.format = 32;
|
||||
|
||||
Reference in New Issue
Block a user