From 6fb8419b3ce65e25ee6fb34b9aaff099d397c19e Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 17 Jun 2025 14:23:20 +0300 Subject: [PATCH] Disable window flashing on Wayland to fix focus issues --- Source/Engine/Platform/SDL/SDLWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 51ddf3479..4abbc3463 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -750,6 +750,11 @@ Float2 SDLWindow::ClientToScreen(const Float2& clientPos) const void SDLWindow::FlashWindow() { +#if PLATFORM_LINUX + // Flashing brings the window on top of other windows, disable it for now + if (SDLPlatform::UsesWayland()) + return; +#endif SDL_FlashWindow(_window, SDL_FLASH_UNTIL_FOCUSED); }