mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Set class hints for X11, so it shows up as app name instead of 'Unknown' in unity sidebar or '...' in xfce alt tab top line
This commit is contained in:
parent
cecfe81452
commit
25e816b9a2
@ -929,6 +929,11 @@ void Window_Create(int width, int height) {
|
|||||||
Window_RefreshBounds(width, height);
|
Window_RefreshBounds(width, height);
|
||||||
Window_Exists = true;
|
Window_Exists = true;
|
||||||
Window_Handle = (void*)win_handle;
|
Window_Handle = (void*)win_handle;
|
||||||
|
|
||||||
|
XClassHint hint = { 0 };
|
||||||
|
hint.res_name = GAME_APP_TITLE;
|
||||||
|
hint.res_class = GAME_APP_TITLE;
|
||||||
|
XSetClassHint(win_display, win_handle, &hint);
|
||||||
|
|
||||||
#ifdef CC_BUILD_X11ICON
|
#ifdef CC_BUILD_X11ICON
|
||||||
Atom net_wm_icon = XInternAtom(win_display, "_NET_WM_ICON", false);
|
Atom net_wm_icon = XInternAtom(win_display, "_NET_WM_ICON", false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user