From 25e816b9a2c70bae393e878aff14670adda85182 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 17 Nov 2019 20:22:11 +1100 Subject: [PATCH] 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 --- src/Window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Window.c b/src/Window.c index 95042c455..6c3657bab 100644 --- a/src/Window.c +++ b/src/Window.c @@ -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);