• Advertisement
Sign in to follow this  

Multiple windows, always keeping one ontop

This topic is 1720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am working with sfml and I have multiple windows open at a time. Is there anyway to keep one widow on top at all times, even when I am active in a different window? thanks for any help.

Edited by Crusable

Share this post


Link to post
Share on other sites
Advertisement

It seems that you can use sf::WindowListener to listen for LostFocus event and when this event is received, you can call sf::Window::SetActive.

Share this post


Link to post
Share on other sites

I am using sfml 2.0 and WindowListener is 1.6, Also, the sf::Window::SetActive sets the OpenGL rendering target. 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement