SDL3: Use different class when built as Flatpak

This commit is contained in:
Dexter Reed 2024-04-01 00:42:43 +01:00
parent 2bea8728da
commit 426737aaa1
No known key found for this signature in database
GPG key ID: 68E4C1548B4808AF

View file

@ -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;