i3
|
Go to the source code of this file.
Enumerations | |
enum | click_destination_t { CLICK_BORDER = 0 , CLICK_DECORATION = 1 , CLICK_INSIDE = 2 } |
Functions | |
static bool | tiling_resize_for_border (Con *con, border_t border, xcb_button_press_event_t *event, bool use_threshold) |
static bool | floating_mod_on_tiled_client (Con *con, xcb_button_press_event_t *event) |
static bool | tiling_resize (Con *con, xcb_button_press_event_t *event, const click_destination_t dest, bool use_threshold) |
static void | allow_replay_pointer (xcb_timestamp_t time) |
static void | route_click (Con *con, xcb_button_press_event_t *event, const click_destination_t dest) |
void | handle_button_press (xcb_button_press_event_t *event) |
The button press X callback. | |
enum click_destination_t |
|
static |
Definition at line 158 of file click.c.
References conn, and tree_render().
Referenced by route_click().
|
static |
Definition at line 84 of file click.c.
References BORDER_BOTTOM, BORDER_LEFT, BORDER_RIGHT, BORDER_TOP, DLOG, Rect::height, Con::rect, tiling_resize_for_border(), and Rect::width.
Referenced by route_click().
void handle_button_press | ( | xcb_button_press_event_t * | event | ) |
The button press X callback.
This function determines whether the floating modifier is pressed and where the user clicked (decoration, border, inside the window).
Then, route_click is called on the appropriate con.
Definition at line 372 of file click.c.
References CLICK_BORDER, CLICK_DECORATION, CLICK_INSIDE, command_result_free(), con_by_frame_id(), con_by_window_id(), con_get_workspace(), con_is_internal(), conn, croot, Con::deco_rect, DLOG, ELOG, focused, get_binding_from_xcb_event(), last_timestamp, output_get_content(), Con::rect, rect_contains(), root, route_click(), run_binding(), TAILQ_FIRST, TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, tree_render(), Binding::whole_window, Con::window, and workspace_show().
Referenced by handle_event().
|
static |
Definition at line 169 of file click.c.
References AFTER, allow_replay_pointer(), BEFORE, Binding::border, CLICK_BORDER, CLICK_DECORATION, CLICK_INSIDE, command_result_free(), con_activate(), con_descend_focused(), con_get_fullscreen_covering_ws(), con_get_output(), con_get_workspace(), con_has_parent(), con_inside_floating(), config, conn, DLOG, Binding::exclude_titlebar, floating_drag_window(), floating_mod_on_tiled_client(), Config::floating_modifier, floating_resize_window(), focused, get_binding_from_xcb_event(), get_tree_next_sibling(), has_drop_targets(), L_STACKED, L_TABBED, Con::layout, Con::name, output_get_content(), Con::parent, run_binding(), TAILQ_EMPTY, TAILQ_FIRST, Config::tiling_drag, tiling_drag(), TILING_DRAG_MODIFIER, TILING_DRAG_MODIFIER_OR_TITLEBAR, TILING_DRAG_TITLEBAR, tiling_resize(), Con::type, Binding::whole_window, workspace_show(), XCB_BUTTON_CLICK_LEFT, XCB_BUTTON_CLICK_RIGHT, XCB_BUTTON_SCROLL_DOWN, XCB_BUTTON_SCROLL_LEFT, XCB_BUTTON_SCROLL_RIGHT, and XCB_BUTTON_SCROLL_UP.
Referenced by handle_button_press().
|
static |
Definition at line 127 of file click.c.
References BORDER_BOTTOM, BORDER_LEFT, BORDER_RIGHT, BORDER_TOP, CLICK_BORDER, CLICK_DECORATION, con_border_style_rect(), DLOG, Rect::height, Con::rect, tiling_resize_for_border(), Rect::width, Con::window_rect, Rect::x, and Rect::y.
Referenced by route_click().
|
static |
Definition at line 24 of file click.c.
References BORDER_BOTTOM, BORDER_LEFT, BORDER_RIGHT, BORDER_TOP, D_DOWN, D_LEFT, D_RIGHT, D_UP, DLOG, ELOG, Con::fullscreen_mode, HORIZ, Con::parent, resize_find_tiling_participants(), resize_graphical_handler(), tree_render(), and VERT.
Referenced by floating_mod_on_tiled_client(), and tiling_resize().