Advertise ourselves as compton to X

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-04-08 05:53:59 +01:00
parent abeeb36bb2
commit 4afc853d4f
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 2 deletions

View File

@ -1084,9 +1084,9 @@ static bool register_cm(session_t *ps) {
XClassHint *h = XAllocClassHint();
if (h) {
h->res_name = "compton";
h->res_class = "xcompmgr";
h->res_class = "compton";
}
Xutf8SetWMProperties(ps->dpy, ps->reg_win, "xcompmgr", "xcompmgr", NULL,
Xutf8SetWMProperties(ps->dpy, ps->reg_win, "compton", "compton", NULL,
0, NULL, NULL, h);
cxfree(h);
}