Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Will RenderWindow always send Resized whenever setSize is called?  (Read 1954 times)

0 Members and 1 Guest are viewing this topic.

dogunbound

  • Newbie
  • *
  • Posts: 7
    • View Profile
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?

dogunbound

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Will RenderWindow always send Resized whenever setSize is called?
« Reply #1 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.