Fix notify on xmonad

I don't get a notification otherwise, not sure if this is the better
default or we need an option
This commit is contained in:
def 2021-10-16 19:37:51 +02:00
parent fce6776c38
commit 206585e885

View file

@ -1206,7 +1206,7 @@ void CGraphicsBackend_SDL_OpenGL::GetViewportSize(int &w, int &h)
void CGraphicsBackend_SDL_OpenGL::NotifyWindow()
{
#if SDL_MAJOR_VERSION > 2 || (SDL_MAJOR_VERSION == 2 && SDL_PATCHLEVEL >= 16)
if(SDL_FlashWindow(m_pWindow, SDL_FlashOperation::SDL_FLASH_BRIEFLY) != 0)
if(SDL_FlashWindow(m_pWindow, SDL_FlashOperation::SDL_FLASH_UNTIL_FOCUSED) != 0)
{
// fails if SDL hasn't implemented it
return;