Re: Small window management issues

Kai Sterker <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CACtHX9zfrGDEw73OGUbzFXr1ZcZOGJANSwVFhmEe28HC8Jnksg@mail.gmail.com>
On Mon, Jul 18, 2016 at 10:39 AM, Kai Sterker <[email protected]> wrote:

> Under X11, using the new SDL_GetDisplayUsableBounds function directly
> after switching from 640x480 fullscreen mode to window mode still returns
> bounds even smaller than 640x480. As I use that to size the window
> appropriately, this leads to a tiny window. This does not happen on
either OSX
> or Windows.

Surprisingly, SDL_Delay(250) between

SDL_SetWindowFullscreen(Window, SDL_FALSE) and
SDL_GetDisplayUsableBounds(screen, &bounds);

helps to prevent the issue, at least on my PC. Seems to indicate that
SDL_SetWindowFullscreen is not really a synchronous call that returns when
all the work is complete. While I am not entirely happy about that
workaround, as it is likely to break more often than not, it's better than
nothing, at least.

Kai

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.