i3
Functions
src/click.c File Reference
#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"
Include dependency graph for click.c:

Go to the source code of this file.

Functions

static struct Stack_Windowget_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.

Function Documentation

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().

Here is the call graph for this function:

static bool button_press_stackwin ( xcb_connection_t *  conn,
xcb_button_press_event_t *  event 
) [static]
static bool floating_mod_on_tiled_client ( xcb_connection_t *  conn,
Client client,
xcb_button_press_event_t *  event 
) [static]
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 
)