mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Only request attention if window has no focus.
This commit is contained in:
parent
b66c3a0e30
commit
d0968844d8
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user