From a46522da3b95cd83170e2cbf85a103e214b840ff Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 25 Aug 2025 12:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=AE=B0=E5=BD=95=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E4=BA=8B=E4=BB=B6=E4=BF=A1=E6=81=AF=EF=BC=88?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E5=A4=AA=E9=A2=91=E7=B9=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.c | 4 ---- src/xcb/event.c | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index db1fd1c..8c45c37 100644 --- a/src/main.c +++ b/src/main.c @@ -572,10 +572,6 @@ void expose(expose_event_t *event) { } void motion_notify(motion_notify_event_t *event) { - logger("motion: window: 0x%x, root: 0x%x\n", event->window, event->root); - logger("x: %d, y: %d, root_x: %d, root_y: %d\n", event->x, event->y, - event->root_x, event->root_y); - logger("root window: 0x%x\n", get_root_window()); if (event->window != get_root_window()) return; static monitor_t *mon = NULL; diff --git a/src/xcb/event.c b/src/xcb/event.c index 3694dc7..c162056 100644 --- a/src/xcb/event.c +++ b/src/xcb/event.c @@ -18,7 +18,6 @@ static void convert_event(xcb_generic_event_t *xcb_event, generic_event_t *event) { uint8_t event_type = XCB_EVENT_RESPONSE_TYPE(xcb_event); const char *label = xcb_event_get_label(event_type); - logger("=========================== %s ===========================\n", label); switch (event_type) { case XCB_MAPPING_NOTIFY: event->type = EVENT_TYPE_MAPPING_NOTIFY; @@ -120,6 +119,9 @@ static void convert_event(xcb_generic_event_t *xcb_event, event->type = -1; return; } + if (event->type != EVENT_TYPE_MOTION_NOTIFY) { + logger("========================== %s ==========================\n", label); + } } event_adapter_t *create_event_adapter(void) {