diff --git a/osu.Framework/Platform/SDL3Window.cs b/osu.Framework/Platform/SDL3Window.cs index 9148aca312..2212e946d1 100644 --- a/osu.Framework/Platform/SDL3Window.cs +++ b/osu.Framework/Platform/SDL3Window.cs @@ -101,7 +101,7 @@ public IntPtr WindowHandle return SDL3.SDL_GetProperty(props, SDL3.SDL_PROP_WINDOW_WAYLAND_SURFACE_POINTER, IntPtr.Zero); if (SDL3.SDL_GetCurrentVideoDriver() == "x11") - return SDL3.SDL_GetProperty(props, SDL3.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, IntPtr.Zero); + return new IntPtr(SDL3.SDL_GetNumberProperty(props, SDL3.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, 0)); return IntPtr.Zero;