_fix windows compilation

This commit is contained in:
2025-01-15 18:40:24 +02:00
parent ed4d5a5397
commit 4661e8d601
3 changed files with 14 additions and 16 deletions

View File

@@ -308,7 +308,9 @@ SDLWindow::~SDLWindow()
if (_window == nullptr)
return;
#if PLATFORM_LINUX
SurfaceToWindowMap.RemoveValue(this);
#endif
SDL_StopTextInput(_window);
SDL_DestroyWindow(_window);
@@ -824,8 +826,10 @@ void SDLWindow::Hide()
SDL_HideWindow(_window);
#if PLATFORM_LINUX
if (SDLPlatform::UsesWayland() && _dragOver)
StopDragging();
#endif
WindowBase::Hide();
}
@@ -1321,8 +1325,11 @@ void SDLWindow::StartDragging(const Float2& offset, Window* dragSourceWindow)
#endif
}
#if PLATFORM_LINUX
SetOpacity(0.1f);
DoDragDropWayland(String("notawindow"), dragSourceWindow, dragOffset);
if (SDLPlatform::UsesWayland()
DoDragDropWayland(String("notawindow"), dragSourceWindow, dragOffset);
#endif
/*
_dragOver = true;