mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
parent
fce6776c38
commit
206585e885
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue