mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
SDL3: Use different class when built as Flatpak
This commit is contained in:
parent
2bea8728da
commit
426737aaa1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue