SFML community forums

General => Feature requests => Topic started by: FRex on February 01, 2018, 02:19:08 am

Title: Hidden Window Creation
Post by: FRex on February 01, 2018, 02:19:08 am
It could be added to the Styles flags.

Creating a window and instantly hiding it causes it to flicker on Windows 10 at least (very visibly and jarringly) on the screen so it's not enough.

The only previous thing I could find was this issue but it seem to not have been followed up on: https://github.com/SFML/SFML/issues/1155
Title: Re: Hidden Window Creation
Post by: eXpl0it3r on February 01, 2018, 03:03:21 pm
And what's the use case?
Title: Re: Hidden Window Creation
Post by: FRex on February 01, 2018, 05:31:46 pm
It causes a very jarring flicker of the original Window on Windows if I want to do something with the Window myself right after creating it (like maximize or hide it). It looks horrible, bad on the eyes and look like a bug when it happens.
Title: Re: Hidden Window Creation
Post by: Jonny on February 16, 2018, 01:59:48 am
I have needed this in the past, and ended up adding it to my local version of SFML.

It was a while ago, so I can't remember the exact use case. IIRC it was something to do with loading resources before the window opened causing issues because of some openGL stuff I don't understand.


From memory, the windows implementation was very straightforward, especially if you're familiar with windows API, so if there's no complications on other platforms I'd fully support this request.
Title: Re: Hidden Window Creation
Post by: FRex on February 16, 2018, 02:37:14 am
Laurent has already said that he wants pretty much this to be implemented as part of 'Window States': https://en.sfml-dev.org/forums/index.php?topic=23578.msg161405#msg161405