From 1d070b85a005a11afc3554ea5291844936316728 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 29 May 2021 09:47:51 +0200 Subject: [PATCH] Set WM_CLASS atom Closes #235 --- lemonbar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lemonbar.c b/lemonbar.c index da21cf2..3c54bbc 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -1011,6 +1011,7 @@ set_ewmh_atoms (void) xcb_change_property(c, XCB_PROP_MODE_REPLACE, mon->window, atom_list[NET_WM_STRUT_PARTIAL], XCB_ATOM_CARDINAL, 32, 12, strut); xcb_change_property(c, XCB_PROP_MODE_REPLACE, mon->window, atom_list[NET_WM_STRUT], XCB_ATOM_CARDINAL, 32, 4, strut); xcb_change_property(c, XCB_PROP_MODE_REPLACE, mon->window, XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8, 3, "bar"); + xcb_change_property(c, XCB_PROP_MODE_REPLACE, mon->window, XCB_ATOM_WM_CLASS, XCB_ATOM_STRING, 8, 12, "lemonbar\0Bar"); } }