Skip to content

Commit 96bfcaf

Browse files
[Rendering] Fix SDL handling of X11 window pointers;
1 parent 667df2d commit 96bfcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/Staple.Core/Rendering/Windowing/Impls/SDL3RenderWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ public void GetNativePlatformData(AppPlatform platform, out NativeWindowType typ
696696

697697
type = NativeWindowType.X11;
698698

699-
windowPointer = SDL.SDL_GetPointerProperty(SDL.SDL_GetWindowProperties(window),
700-
SDL.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, nint.Zero);
699+
windowPointer = (nint)SDL.SDL_GetNumberProperty(SDL.SDL_GetWindowProperties(window),
700+
SDL.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, 0);
701701
monitorPointer = SDL.SDL_GetPointerProperty(SDL.SDL_GetWindowProperties(window),
702702
SDL.SDL_PROP_WINDOW_X11_DISPLAY_POINTER, nint.Zero);
703703

0 commit comments

Comments
 (0)