Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window manager sets the window size.
authorSam Lantinga <slouken@libsdl.org>
Mon, 03 Apr 2017 13:32:53 -0700
changeset 10961f931db466859
parent 10960 5ebfa73d9f4b
child 10963 c1f32e587365
Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window manager sets the window size.

Samuel Hopkins

Just confirming that the patch from Andreas (attachment 1715 [details]) works for me under SDL 2.0.3 with xmonad.

Stas Sergeev

Confirming that the patch in this ticket fixes the full-screen switching for dosemu2 on ubuntu-16.04. Note that I am not using xmonad, so this bug appears to be generic.
src/video/x11/SDL_x11framebuffer.c
     1.1 --- a/src/video/x11/SDL_x11framebuffer.c	Sun Apr 02 21:33:54 2017 +0200
     1.2 +++ b/src/video/x11/SDL_x11framebuffer.c	Mon Apr 03 13:32:53 2017 -0700
     1.3 @@ -97,7 +97,7 @@
     1.4                  shm_error = False;
     1.5                  X_handler = X11_XSetErrorHandler(shm_errhandler);
     1.6                  X11_XShmAttach(display, shminfo);
     1.7 -                X11_XSync(display, True);
     1.8 +                X11_XSync(display, False);
     1.9                  X11_XSetErrorHandler(X_handler);
    1.10                  if ( shm_error )
    1.11                      shmdt(shminfo->shmaddr);