From 3d5f8ab7e07951445c82498ce0a245035581194e Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sun, 25 Jan 2026 11:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20root=20=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E4=B8=BA=E9=BB=91=E8=89=B2=E4=BB=A5=E5=85=8D?= =?UTF-8?q?=20client=20=E7=AA=97=E5=8F=A3=E9=94=80=E6=AF=81=E5=90=8E?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E4=B8=8D=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wm.c b/src/wm.c index 41fd1c5..d95915d 100644 --- a/src/wm.c +++ b/src/wm.c @@ -284,8 +284,9 @@ static void wm_setup(void) { monitor_draw_bar(m); } - uint32_t mask = XCB_CW_EVENT_MASK | XCB_CW_CURSOR; + uint32_t mask = XCB_CW_EVENT_MASK | XCB_CW_CURSOR | XCB_CW_BACK_PIXEL; xcb_params_cw_t params = { + .back_pixel = wm.screen->black_pixel, .cursor = xcursor_get_xcb_cursor(cursor_normal), .event_mask = XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_KEY_PRESS,