From 0107d35508ac86e84f73bcdbd8dbb42ca188bdcc Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Thu, 30 Jul 2015 22:40:38 -0400 Subject: [PATCH] Don't log motion notify Do not log an XCB_MOTION_NOTIFY event in handlers.c because this clutters the log. Only log in the motion notify handler if something important happens. --- src/handlers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index d7d48a1c..8e08d697 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1319,7 +1319,9 @@ static void property_notify(uint8_t state, xcb_window_t window, xcb_atom_t atom) * */ void handle_event(int type, xcb_generic_event_t *event) { - DLOG("event type %d, xkb_base %d\n", type, xkb_base); + if (type != XCB_MOTION_NOTIFY) + DLOG("event type %d, xkb_base %d\n", type, xkb_base); + if (randr_base > -1 && type == randr_base + XCB_RANDR_SCREEN_CHANGE_NOTIFY) { handle_screen_change(event); -- 2.39.5