src/video/x11/SDL_x11events.c
changeset 1159 787b8d2c23e4
parent 805 df1a3218b468
child 1168 045f186426e1
equal deleted inserted replaced
1158:ec446adf8cb2 1159:787b8d2c23e4
   157 static int X11_DispatchEvent(_THIS)
   157 static int X11_DispatchEvent(_THIS)
   158 {
   158 {
   159 	int posted;
   159 	int posted;
   160 	XEvent xevent;
   160 	XEvent xevent;
   161 
   161 
       
   162 	memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
   162 	XNextEvent(SDL_Display, &xevent);
   163 	XNextEvent(SDL_Display, &xevent);
   163 
   164 
   164 	posted = 0;
   165 	posted = 0;
   165 	switch (xevent.type) {
   166 	switch (xevent.type) {
   166 
   167