contrib
debian
docs
i3-config-wizard
i3-dump-log
i3-input
i3-msg
i3-nagbar
i3bar
include
i3
all.h
assignments.h
atoms.xmacro
bindings.h
click.h
cmdparse.h
commands.h
commands_parser.h
con.h
config.h
config_directives.h
config_parser.h
data.h
debug.h
display_version.h
ewmh.h
fake_outputs.h
floating.h
handlers.h
i3.h
ipc.h
key_press.h
libi3.h
load_layout.h
log.h
main.h
manage.h
match.h
move.h
output.h
queue.h
randr.h
regex.h
render.h
resize.h
restore_layout.h
scratchpad.h
sd-daemon.h
shmlog.h
sighandler.h
startup.h
tree.h
util.h
window.h
workspace.h
x.h
xcb.h
xcb_compat.h
xcursor.h
xinerama.h
yajl_utils.h
libi3
man
parser-specs
src
testcases
.clang-format
.gitignore
.travis.yml
CONTRIBUTING.md
DEPENDS
LICENSE
Makefile
PACKAGE-MAINTAINER
RELEASE-NOTES-4.10.4
common.mk
generate-command-parser.pl
i3-dmenu-desktop
i3-migrate-config-to-v4
i3-save-tree
i3-sensible-editor
i3-sensible-pager
i3-sensible-terminal
i3-with-shmlog.xsession.desktop
i3.applications.desktop
i3.config
i3.config.keycodes
i3.xsession.desktop
logo.svg
pseudo-doc.doxygen
release.sh
The script used to make these changes can be found at: https://gist.github.com/Deiz/32322020f76d23e2bf8f
66 lines
1.6 KiB
C
66 lines
1.6 KiB
C
/*
|
|
* vim:ts=4:sw=4:expandtab
|
|
*
|
|
* i3 - an improved dynamic tiling window manager
|
|
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
|
*
|
|
* handlers.c: Small handlers for various events (keypresses, focus changes,
|
|
* …).
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <xcb/randr.h>
|
|
|
|
extern int randr_base;
|
|
extern int xkb_base;
|
|
|
|
/**
|
|
* Adds the given sequence to the list of events which are ignored.
|
|
* If this ignore should only affect a specific response_type, pass
|
|
* response_type, otherwise, pass -1.
|
|
*
|
|
* Every ignored sequence number gets garbage collected after 5 seconds.
|
|
*
|
|
*/
|
|
void add_ignore_event(const int sequence, const int response_type);
|
|
|
|
/**
|
|
* Checks if the given sequence is ignored and returns true if so.
|
|
*
|
|
*/
|
|
bool event_is_ignored(const int sequence, const int response_type);
|
|
|
|
/**
|
|
* Takes an xcb_generic_event_t and calls the appropriate handler, based on the
|
|
* event type.
|
|
*
|
|
*/
|
|
void handle_event(int type, xcb_generic_event_t *event);
|
|
|
|
/**
|
|
* Sets the appropriate atoms for the property handlers after the atoms were
|
|
* received from X11
|
|
*
|
|
*/
|
|
void property_handlers_init(void);
|
|
|
|
#if 0
|
|
/**
|
|
* Configuration notifies are only handled because we need to set up ignore
|
|
* for the following enter notify events
|
|
*
|
|
*/
|
|
int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
|
|
#endif
|
|
|
|
#if 0
|
|
/**
|
|
* Handles _NET_WM_WINDOW_TYPE changes
|
|
*
|
|
*/
|
|
int handle_window_type(void *data, xcb_connection_t *conn, uint8_t state,
|
|
xcb_window_t window, xcb_atom_t atom,
|
|
xcb_get_property_reply_t *property);
|
|
#endif
|