mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Check if glfwRequestWindowAttention() is available.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user