From 206585e88558e4b542b31e1321fdf3640c515cd9 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 16 Oct 2021 19:37:51 +0200 Subject: [PATCH] Fix notify on xmonad I don't get a notification otherwise, not sure if this is the better default or we need an option --- src/engine/client/backend_sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 58b97b110..79aecf12a 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -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;