x11: Removed an assert.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 15 Feb 2016 21:49:09 -0500
changeset 10071f7e18e4f7c1d
parent 10070 734b680cba95
child 10072 d2a1cd694861
x11: Removed an assert.

This assert triggers when run under XMonad. It's safe to pass a zero here
anyhow, as this will still work "well enough" and the original
problem--GNOME printing a warning message--is still fixed because GNOME's
window manager gives us a chance to grab a non-zero user-time value before
this code is run.
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Mon Feb 15 03:37:01 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11window.c	Mon Feb 15 21:49:09 2016 -0500
     1.3 @@ -1047,7 +1047,6 @@
     1.4      if (X11_IsWindowMapped(_this, window)) {
     1.5          XEvent e;
     1.6  
     1.7 -        SDL_assert(data->user_time != 0);  /* should be set by _some_ event by now. */
     1.8          /*printf("SDL Window %p: sending _NET_ACTIVE_WINDOW with timestamp %lu\n", window, data->user_time);*/
     1.9  
    1.10          SDL_zero(e);