return false;
}
+
+/**
+ * Moves the mouse pointer into the middle of rect.
+ *
+ */
+void xcb_warp_pointer_rect(xcb_connection_t *conn, Rect *rect) {
+ int mid_x = rect->x + (rect->width / 2);
+ int mid_y = rect->y + (rect->height / 2);
+
+ LOG("warp pointer to: %d %d\n", mid_x, mid_y);
+ xcb_warp_pointer(conn, XCB_NONE, root, 0, 0, 0, 0, mid_x, mid_y);
+}