sdl2: Fix broken display updating after the window is hidden
commitbcf43cdc178ffbd06d0533b6c54e92640817c9c7
authorJindrich Makovicka <makovick@gmail.com>
Sun, 12 Nov 2017 19:30:25 +0000 (12 20:30 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 16 Nov 2017 08:57:47 +0000 (16 09:57 +0100)
tree9c0c6dc5994e10080a25db286867ad62a50982ad
parent24952847ad50f1b120287fdc4469b78108eef33c
sdl2: Fix broken display updating after the window is hidden

With SDL 2.0.6, calling SDL_ShowWindow during SDL_WINDOWEVENT_HIDDEN
blocks all subsequent display updates.

Instead of trying to override the change, just update the scon->hidden
flag.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Message-Id: <20171112193032.9724-2-makovick@gmail.com>

This is a partial revert of d3f3a0f453ea590be529079ae214c200bb5ecc1a,
which in turn is a workaround for a SDL bug.  The bug is fixed in 2.0.6,
see https://bugzilla.libsdl.org/show_bug.cgi?id=3410

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/sdl2.c