[client] x11: set the window class name

This commit is contained in:
Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 17d423db06
commit 5454053d96
1 file changed
+9
+9
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 =