16 const xcb_button_press_event_t *,
const void *);
19#define DRAGGING_CB(name) \
20 static void name(Con *con, Rect *old_rect, uint32_t new_x, uint32_t new_y, \
21 const xcb_button_press_event_t *event, const void *extra)
59 xcb_window_t confine_to,
int cursor,
void(* callback_t)(Con *, Rect *, uint32_t, uint32_t, const xcb_button_press_event_t *, const void *)
Callback for dragging.
drag_result_t
This is the return value of a drag operation like drag_pointer.
drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_window_t confine_to, int cursor, bool use_threshold, callback_t callback, const void *extra)
This function grabs your pointer and keyboard and lets you drag stuff around (borders).
Stores a rectangle, for example the size of a window, the child window etc.
A 'Con' represents everything from the X11 root window down to a single X11 window.