From ffc39cd2bf29c711a89679d29f57903cb7bf38eb Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sun, 14 Dec 2025 17:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E4=B8=AA=E7=AA=97=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=20bar=20window=20=E8=AE=BE=E7=BD=AE=20class=20=E5=92=8C=20name?= =?UTF-8?q?=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/monitor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/monitor.c b/src/monitor.c index df99280..84a61d5 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -5,7 +5,9 @@ #include #include #include +#include +#include "app.h" #include "base.h" #include "client.h" #include "color.h" @@ -119,6 +121,9 @@ void monitor_init_bar(monitor_t *monitor) { cookie = xcb_map_window(conn, window); if (xcb_request_check(conn, cookie)) fatal("cannot map bar window:"); + xwindow_set_class_instance(window); + xwindow_set_name_static(window, APP_NAME "_bar"); + xcb_aux_sync(conn); uint16_t width = monitor->geometry.width;