mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
X11: Use different class when built as Flatpak
This commit is contained in:
parent
e5ef11d6bb
commit
a75515c191
@ -338,8 +338,13 @@ static void DoCreateWindow(int width, int height) {
|
||||
|
||||
/* So right name appears in e.g. Ubuntu Unity launchbar */
|
||||
XClassHint hint = { 0 };
|
||||
hint.res_name = GAME_APP_TITLE;
|
||||
hint.res_class = GAME_APP_TITLE;
|
||||
#ifdef CC_BUILD_FLATPAK
|
||||
hint.res_name = "net.classicube.flatpak.client";
|
||||
hint.res_class = "net.classicube.flatpak.client";
|
||||
#else
|
||||
hint.res_name = GAME_APP_TITLE;
|
||||
hint.res_class = GAME_APP_TITLE;
|
||||
#endif
|
||||
XSetClassHint(win_display, win_handle, &hint);
|
||||
ApplyIcon();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user