Skip to content
Permalink
Browse files

Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window m…

…anager 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.
  • Loading branch information
slouken committed Apr 3, 2017
1 parent ca11011 commit f1969cb6175745a58908716ab38e825bedf357a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/x11/SDL_x11image.c
@@ -59,7 +59,7 @@ static void try_mitshm(_THIS, SDL_Surface *screen)
shm_error = False;
X_handler = XSetErrorHandler(shm_errhandler);
XShmAttach(SDL_Display, &shminfo);
XSync(SDL_Display, True);
XSync(SDL_Display, False);
XSetErrorHandler(X_handler);
if ( shm_error )
shmdt(shminfo.shmaddr);

0 comments on commit f1969cb

Please sign in to comment.