Check if glfwRequestWindowAttention() is available.

This commit is contained in:
Bartosz Taudul 2022-10-15 01:15:22 +02:00
parent 0f025ab604
commit 55f2da581a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -153,10 +153,12 @@ void Backend::Run()
void Backend::Attention()
{
#if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 3 )
if( !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) )
{
glfwRequestWindowAttention( s_window );
}
#endif
}
void Backend::NewFrame( int& w, int& h )