diff --git a/src/handlers.c b/src/handlers.c index c6d3e81d..0eda54b0 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -215,7 +215,7 @@ static void handle_motion_notify(xcb_motion_notify_event_t *event) { /* Skip events where the pointer was over a child window, we are only * interested in events on the root window. */ - if (event->child != 0) + if (event->child != XCB_NONE) return; Con *con;