From 0b605e195c88445920b724844412770933f3053c Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sun, 10 Aug 2025 11:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=B9=20xcb/xinput.h=20?= =?UTF-8?q?=E7=9A=84=E4=BE=9D=E8=B5=96=EF=BC=8C=E5=9B=A0=E4=B8=BA=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=88=B0=20xinput=20=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xcb/xcb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/xcb/xcb.c b/src/xcb/xcb.c index 9061428..9ca0662 100644 --- a/src/xcb/xcb.c +++ b/src/xcb/xcb.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include "app.h" @@ -187,7 +186,6 @@ static void init_ewmh_extension(void) { xcb_ewmh_set_supporting_wm_check(ewmh, wm_check_window, wm_check_window); uint8_t mode = XCB_PROP_MODE_REPLACE; - uint8_t format = XCB_INPUT_PROPERTY_FORMAT_32_BITS; xcb_atom_t atom = XCB_ATOM_ATOM; const xcb_atom_t state[] = {ewmh->_NET_WM_STATE_STICKY}; const xcb_atom_t supported[] = { @@ -202,9 +200,9 @@ static void init_ewmh_extension(void) { ewmh->_NET_CLIENT_LIST, }; xcb_change_property(conn, mode, wm_check_window, ewmh->_NET_WM_STATE, atom, - format, LENGTH(state), state); - xcb_change_property(conn, mode, screen->root, ewmh->_NET_SUPPORTED, atom, - format, LENGTH(supported), supported); + 32, LENGTH(state), state); + xcb_change_property(conn, mode, screen->root, ewmh->_NET_SUPPORTED, atom, 32, + LENGTH(supported), supported); xcb_delete_property(conn, screen->root, ewmh->_NET_CLIENT_LIST); }