#include <stdio.h>#include <assert.h>#include <string.h>#include <stdlib.h>#include <time.h>#include <stdbool.h>#include <math.h>#include <xcb/xcb.h>#include <xcb/xcb_atom.h>#include <xcb/xcb_icccm.h>#include <X11/XKBlib.h>#include "i3.h"#include "queue.h"#include "table.h"#include "config.h"#include "util.h"#include "xcb.h"#include "client.h"#include "workspace.h"#include "commands.h"#include "floating.h"#include "resize.h"#include "log.h"#include "randr.h"
Go to the source code of this file.
Functions | |
| static struct Stack_Window * | get_stack_window (xcb_window_t window_id) |
| static bool | button_press_stackwin (xcb_connection_t *conn, xcb_button_press_event_t *event) |
| static bool | button_press_bar (xcb_connection_t *conn, xcb_button_press_event_t *event) |
| static bool | floating_mod_on_tiled_client (xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event) |
| int | handle_button_press (void *ignored, xcb_connection_t *conn, xcb_button_press_event_t *event) |
| Checks if the button press was on a stack window, handles focus setting and returns true if so, or false otherwise. | |
| static bool button_press_bar | ( | xcb_connection_t * | conn, | |
| xcb_button_press_event_t * | event | |||
| ) | [static] |
Definition at line 128 of file click.c.
References xoutput::bar, c_ws, DLOG, Workspace::num, Workspace::output, outputs, TAILQ_END, TAILQ_FOREACH, TAILQ_NEXT, TAILQ_PREV, Workspace::text_width, workspace_show(), and workspaces.
Referenced by handle_button_press().

| static bool button_press_stackwin | ( | xcb_connection_t * | conn, | |
| xcb_button_press_event_t * | event | |||
| ) | [static] |
Definition at line 60 of file click.c.
References CIRCLEQ_FOREACH, config, Stack_Window::container, CUR_CELL, D_UP, DLOG, focus_window_in_container(), Config::font, get_stack_window(), Font::height, load_font(), Container::mode, Stack_Window::rect, set_focus(), Container::stack_limit, Container::stack_limit_value, width, Rect::width, and Container::width.
Referenced by handle_button_press().

| static bool floating_mod_on_tiled_client | ( | xcb_connection_t * | conn, | |
| Client * | client, | |||
| xcb_button_press_event_t * | event | |||
| ) | [static] |
Definition at line 187 of file click.c.
References cell_exists(), Container::col, Workspace::cols, Container::colspan, Client::container, DLOG, Rect::height, Client::rect, resize_graphical_handler(), Container::row, Workspace::rows, Container::rowspan, Rect::width, and Container::workspace.
Referenced by handle_button_press().

| static struct Stack_Window* get_stack_window | ( | xcb_window_t | window_id | ) | [static, read] |
Definition at line 42 of file click.c.
References SLIST_FOREACH, stack_wins, and Stack_Window::window.
Referenced by button_press_stackwin().
| int handle_button_press | ( | void * | ignored, | |
| xcb_connection_t * | conn, | |||
| xcb_button_press_event_t * | event | |||
| ) |
Checks if the button press was on a stack window, handles focus setting and returns true if so, or false otherwise.
Definition at line 255 of file click.c.
References button_press_bar(), button_press_stackwin(), by_child, by_parent, cell_exists(), Client::child_rect, client_is_floating(), Container::col, Workspace::cols, Container::colspan, config, Client::container, DLOG, Client::dock, floating_border_click(), floating_drag_window(), floating_mod_on_tiled_client(), Config::floating_modifier, floating_resize_window(), Config::font, Client::frame, Client::fullscreen, Font::height, Rect::height, load_font(), Client::rect, resize_graphical_handler(), Container::row, Workspace::rows, Container::rowspan, set_focus(), table_get(), Rect::width, Container::workspace, Rect::x, xcb_raise_window(), and Rect::y.
Referenced by main().

1.7.1