From e2f4227a21fbee227a5f93de664cf5214de2bc45 Mon Sep 17 00:00:00 2001 From: Kalan Raphael Walmsley Date: Sun, 9 Apr 2023 09:41:44 +0200 Subject: [PATCH] Sets WM_CLASS to "herbe" --- herbe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/herbe.c b/herbe.c index 51d3990..fd66078 100644 --- a/herbe.c +++ b/herbe.c @@ -168,6 +168,9 @@ int main(int argc, char *argv[]) XftDraw *draw = XftDrawCreate(display, window, visual, colormap); XftColorAllocName(display, visual, colormap, font_color, &color); + XClassHint classhint = { "herbe", "herbe" }; + XSetClassHint(display, window, &classhint); + XSelectInput(display, window, ExposureMask | ButtonPress); XMapWindow(display, window); @@ -217,4 +220,4 @@ int main(int argc, char *argv[]) XCloseDisplay(display); return exit_code; -} \ No newline at end of file +}