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:
UnknownShadow200 2019-11-17 20:22:11 +11:00
parent cecfe81452
commit 25e816b9a2

View File

@ -929,6 +929,11 @@ void Window_Create(int width, int height) {
Window_RefreshBounds(width, height);
Window_Exists = true;
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
Atom net_wm_icon = XInternAtom(win_display, "_NET_WM_ICON", false);