Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
X11: Keyevent Alt+F4 doesn't get triggered in Window mode #274
When using Window mode Alt+F4 doesn't get pulled as Event.
Normally That's nothing one notices as using sf::Style::Close, results in sending a Close Event.
See the original Topic within the forum: http://en.sfml-dev.org/forums/index.php?topic=8923.0
SFML 2.0 bleeding edge (fetched and compiled yesterday)
The only window configuration triggering the Close event are sf::Style::Close (and so of course
The only window configuration triggering the Alt+F4 LeyPressed event is
If you want Alt+F4 to work on borderless windows, just don't set the flag MWM_HINTS_FUNCTIONS in that case (at WindowImplX11.cpp). I can create a pull request with that fix if you want.
In non-borderless windows, when sf::Style::Close is not present, I think Alt+F4 should not work (so there is no bug for me in those cases). Alt+F4 is a shortcut for the close button, so if the close button is not present, the shortuct should not work (because you want a non-closeable window!).