all repos — openbox @ 8fe0cb8989c1fe12b30b9030b446345f25340d35

openbox fork - make it a bit more like ryudo

openbox/keyboard.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ob__keybaord_h
#define ob__keybaord_h

#include "keytree.h"
#include "frame.h"

#include <glib.h>
#include <X11/Xlib.h>

struct _ObClient;
struct _ObAction;

extern KeyBindingTree *keyboard_firstnode;

void keyboard_startup(gboolean reconfig);
void keyboard_shutdown(gboolean reconfig);

gboolean keyboard_bind(GList *keylist, ObAction *action);

void keyboard_event(struct _ObClient *client, const XEvent *e);
void keyboard_reset_chains();

void keyboard_interactive_grab(guint state, struct _ObClient *client,
                               struct _ObAction *action);
gboolean keyboard_process_interactive_grab(const XEvent *e);

void keyboard_grab_for_client(struct _ObClient *c, gboolean grab);

#endif