From d5af283a75f12ff5cd4171f3cac2f94bb09db25e Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 9 Apr 2024 01:35:00 +0900 Subject: [PATCH] Fix Vulkan+X11 not working --- osu.Framework/Platform/SDL3Window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;