i3
handlers.h
Go to the documentation of this file.
1/*
2 * vim:ts=4:sw=4:expandtab
3 *
4 * i3 - an improved tiling window manager
5 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
6 *
7 * handlers.c: Small handlers for various events (keypresses, focus changes,
8 * …).
9 *
10 */
11#pragma once
12
13#include <config.h>
14
15#include <xcb/randr.h>
16
17extern int randr_base;
18extern int xkb_base;
19extern int shape_base;
20
29void add_ignore_event(const int sequence, const int response_type);
30
35bool event_is_ignored(const int sequence, const int response_type);
36
42void handle_event(int type, xcb_generic_event_t *event);
43
49void property_handlers_init(void);
void add_ignore_event(const int sequence, const int response_type)
Adds the given sequence to the list of events which are ignored.
int randr_base
Definition handlers.c:20
void handle_event(int type, xcb_generic_event_t *event)
Takes an xcb_generic_event_t and calls the appropriate handler, based on the event type.
Definition handlers.c:1431
bool event_is_ignored(const int sequence, const int response_type)
Checks if the given sequence is ignored and returns true if so.
Definition handlers.c:52
int xkb_base
Definition handlers.c:21
void property_handlers_init(void)
Sets the appropriate atoms for the property handlers after the atoms were received from X11.
Definition handlers.c:1366
int shape_base
Definition handlers.c:23