SFML community forums

Help => Window => Topic started by: dogunbound on July 09, 2023, 10:07:27 pm

Title: Will RenderWindow always send Resized whenever setSize is called?
Post by: dogunbound on July 09, 2023, 10:07:27 pm
On ArchLinux kde plasma + x11, I noticed that if you call setSize, then poll for events, a Resized event gets polled.

I was just curious if it is guaranteed that this will happen. I'm pretty sure it's a side-effect of the event being propagated from the underlying API (window's API, x11, etc...). Is there some sense of guarantee this will happen?
Title: Re: Will RenderWindow always send Resized whenever setSize is called?
Post by: dogunbound on July 09, 2023, 11:01:16 pm
I would say that since https://github.com/SFML/SFML/pull/2611 is up, there is some sort of guarantee that this will happen.