From 426737aaa1db12f47e37d2fac023db914e66f38a Mon Sep 17 00:00:00 2001 From: Dexter Reed Date: Mon, 1 Apr 2024 00:42:43 +0100 Subject: [PATCH] SDL3: Use different class when built as Flatpak --- src/Window_SDL3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Window_SDL3.c b/src/Window_SDL3.c index 85a1cd7c0..925bb9fc3 100644 --- a/src/Window_SDL3.c +++ b/src/Window_SDL3.c @@ -28,6 +28,9 @@ static void Window_SDLFail(const char* place) { void Window_Init(void) { SDL_Init(SDL_INIT_VIDEO); + #ifdef CC_BUILD_FLATPAK + SDL_SetHint(SDL_HINT_APP_ID, "net.classicube.flatpak.client"); + #endif int displayID = SDL_GetPrimaryDisplay(); Input.Sources = INPUT_SOURCE_NORMAL;