diff --git a/lib/renderers/x11/x11.c b/lib/renderers/x11/x11.c index 802660f..ffd742b 100644 --- a/lib/renderers/x11/x11.c +++ b/lib/renderers/x11/x11.c @@ -4,6 +4,7 @@ #include #include +#include static void render(const struct bm_menu *menu) @@ -230,6 +231,8 @@ constructor(struct bm_menu *menu) if (!bm_x11_window_create(&x11->window, x11->display)) goto fail; + XSetClassHint(x11->window.display, x11->window.drawable, (XClassHint[]){{.res_name = (menu->title ? menu->title : "bemenu"), .res_class = "bemenu"}}); + x11->window.bottom = menu->bottom; bm_x11_window_set_monitor(&x11->window, menu->monitor);