[client] x11: set the window class name

This commit is contained in:
Geoffrey McRae 2021-01-31 21:52:26 +11:00
parent 17d423db06
commit 5454053d96

View File

@ -198,6 +198,15 @@ static bool x11Init(const LG_DSInitParams params)
XStoreName(x11.display, x11.window, params.title);
XClassHint hint =
{
.res_name = strdup(params.title),
.res_class = strdup("looking-glass-client")
};
XSetClassHint(x11.display, x11.window, &hint);
free(hint.res_name);
free(hint.res_class);
x11.aNetReqFrameExtents =
XInternAtom(x11.display, "_NET_REQUEST_FRAME_EXTENTS", True);
x11.aNetFrameExtents =