From 58c2f9d8facbb07ee1357a0a16c240e4a681667a Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 10 Aug 2025 12:04:29 +0300 Subject: [PATCH] port: fix multi-monitor issues on Wayland --- port/fast3d/gfx_sdl2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/fast3d/gfx_sdl2.cpp b/port/fast3d/gfx_sdl2.cpp index e974d4fd4..f967cb8c8 100644 --- a/port/fast3d/gfx_sdl2.cpp +++ b/port/fast3d/gfx_sdl2.cpp @@ -108,8 +108,8 @@ static void gfx_sdl_init(const struct GfxWindowInitSettings *set) { int posY = set->y; int display_in_use = SDL_GetWindowDisplayIndex(wnd); if (display_in_use < 0) { // Fallback to default if out of bounds - posX = 100; - posY = 100; + posX = SDL_WINDOWPOS_UNDEFINED; + posY = SDL_WINDOWPOS_UNDEFINED; } if (set->centered) {