diff --git a/osu.Framework/Platform/SDL3Window.cs b/osu.Framework/Platform/SDL3Window.cs index 05cc67910d..fbff4b4b87 100644 --- a/osu.Framework/Platform/SDL3Window.cs +++ b/osu.Framework/Platform/SDL3Window.cs @@ -156,6 +156,7 @@ protected SDL3Window(GraphicsSurfaceType surfaceType) SDL3.SDL_LogSetPriority(SDL_LogCategory.SDL_LOG_CATEGORY_ERROR, SDL_LogPriority.SDL_LOG_PRIORITY_DEBUG); SDL3.SDL_SetLogOutputFunction(&logOutput, IntPtr.Zero); + SDL3.SDL_SetEventFilter(&eventFilter, ObjectHandle.Handle); graphicsSurface = new SDL3GraphicsSurface(this, surfaceType); @@ -217,7 +218,6 @@ public virtual void Create() /// public virtual void Run() { - SDL3.SDL_SetEventFilter(&eventFilter, ObjectHandle.Handle); SDL3.SDL_AddEventWatch(&eventWatch, ObjectHandle.Handle); RunMainLoop();