From 194816ec2dd31ff4e4e9835d45d1981340409e98 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sun, 14 Dec 2025 22:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=20root=20=E7=AA=97=E5=8F=A3=E5=B1=9E=E6=80=A7=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8E=A9=E7=A0=81=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wm.c b/src/wm.c index f256f5a..ba7dcc3 100644 --- a/src/wm.c +++ b/src/wm.c @@ -295,13 +295,13 @@ static void wm_setup(void) { monitor_draw_bar(m); } + uint32_t mask = XCB_CW_EVENT_MASK | XCB_CW_CURSOR; xcb_params_cw_t params = { .cursor = xcursor_get_xcb_cursor(cursor_normal), .event_mask = XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_KEY_PRESS, }; - xcb_aux_change_window_attributes(wm.xcb_conn, wm.screen->root, XCB_CW_CURSOR, - ¶ms); + xcb_aux_change_window_attributes(wm.xcb_conn, wm.screen->root, mask, ¶ms); wm_setup_keybindings(); atoms_init(wm.xcb_conn);