Add attention request function to windowing backend.

This commit is contained in:
Bartosz Taudul 2022-10-13 19:22:21 +02:00
parent de3190657e
commit 4a1e93841d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ public:
void Show(); void Show();
void Run(); void Run();
void Attention();
void NewFrame( int& w, int& h ); void NewFrame( int& w, int& h );
void EndFrame(); void EndFrame();

View File

@ -151,6 +151,11 @@ void Backend::Run()
#endif #endif
} }
void Backend::Attention()
{
glfwRequestWindowAttention( s_window );
}
void Backend::NewFrame( int& w, int& h ) void Backend::NewFrame( int& w, int& h )
{ {
glfwGetFramebufferSize( s_window, &w, &h ); glfwGetFramebufferSize( s_window, &w, &h );