_drag refactor

This commit is contained in:
2025-01-21 16:08:09 +02:00
parent 61f04110a6
commit c22ae8fca7
3 changed files with 10 additions and 11 deletions

View File

@@ -304,12 +304,6 @@ void SDLPlatform::Tick()
buttonUpEvent.motion.x = mousePosition.X;
buttonUpEvent.motion.y = mousePosition.Y;
draggedWindow->HandleEvent(buttonUpEvent);
//SDL_PushEvent(&buttonUpEvent);
if (!draggedWindow->GetSettings().IsTopmost)
draggedWindow->SetIsAlwaysOnTop(false);
draggedWindow->BringToFront();
draggedWindow = nullptr;
}
}