SFML community forums

Help => Window => Topic started by: MichX on September 30, 2014, 02:09:36 pm

Title: Change window position - event
Post by: MichX on September 30, 2014, 02:09:36 pm
Hi, first of all sorry for my bad english.
I'd like to know is there any event or something when i catch the bar of window and start removing it (window)?
The problem is when i catch the window and dont let go other objects stop moving and when i let go of the window the objects do "big moving step". And I want call Update function when i have catching the window...
Title: Re: Change window position - event
Post by: Laurent on September 30, 2014, 02:27:28 pm
Moving or resizing a window will block the application, there's nothing you can do while it's happening. The only solution with SFML is to have your event loop and your update/draw logic in two separate threads.
Title: Re: Change window position - event
Post by: MichX on September 30, 2014, 02:57:33 pm
Thanks a lot! It's good idea ;-)