From cf052489df0b6888612e84fc5ecadbfd52e6014e Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 11 Aug 2026 11:37:40 +0300 Subject: [PATCH] Fix Wayland dragging regression --- Source/Engine/Platform/SDL/SDLPlatform.Linux.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Platform/SDL/SDLPlatform.Linux.cpp b/Source/Engine/Platform/SDL/SDLPlatform.Linux.cpp index 3bcd2ea88..51a843157 100644 --- a/Source/Engine/Platform/SDL/SDLPlatform.Linux.cpp +++ b/Source/Engine/Platform/SDL/SDLPlatform.Linux.cpp @@ -301,6 +301,8 @@ namespace WaylandImpl auto dragStartWindow = DragSourceWindow != nullptr ? DragSourceWindow->GetSDLWindow() : draggedWindow; wl_surface* originSurface = static_cast(SDL_GetPointerProperty(SDL_GetWindowProperties(dragStartWindow), SDL_PROP_WINDOW_WAYLAND_SURFACE_POINTER, nullptr)); wl_surface* iconSurface = nullptr; + if (!dragWindow) + wl_data_device_start_drag(WrappedDataDevice, dataSource, originSurface, iconSurface, DragSerial); Platform::AtomicStore(&StartFlag, 1);