Enable alt-space menu on windows.

This commit is contained in:
Bartosz Taudul 2022-12-09 19:04:45 +01:00
parent ee3d5a94a7
commit d5191ccbd4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -74,6 +74,11 @@ Backend::Backend( const char* title, std::function<void()> redraw, RunQueue* mai
glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );
#ifdef __APPLE__
glfwWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE );
#endif
#ifdef WIN32
# if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 4 )
glfwWindowHint( GLFW_WIN32_KEYBOARD_MENU, 1 );
# endif
#endif
s_window = glfwCreateWindow( m_winPos.w, m_winPos.h, title, NULL, NULL );
if( !s_window ) exit( 1 );