1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Only request attention if window has no focus.

This commit is contained in:
Bartosz Taudul
2022-10-13 20:44:31 +02:00
parent b66c3a0e30
commit d0968844d8
+4 -1
View File
@@ -153,7 +153,10 @@ void Backend::Run()
void Backend::Attention()
{
glfwRequestWindowAttention( s_window );
if( !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) )
{
glfwRequestWindowAttention( s_window );
}
}
void Backend::NewFrame( int& w, int& h )