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) {