keybinding: ignore shift when getting keysym
[awesome.git] / keybinding.h
blob6f3116a179e8feb2f5184cfc2c8c3233d08d5e25
1 /*
2 * keybinding.h - Keybinding helpers
4 * Copyright © 2008 Pierre Habouzit <madcoder@debian.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef AWESOME_KEYBINDING_H
23 #define AWESOME_KEYBINDING_H
25 #include <xcb/xcb.h>
26 #include "lua.h"
28 typedef struct keybinding_t
30 /** Ref count */
31 int refcount;
32 /** Key modifier */
33 unsigned long mod;
34 /** Keysym */
35 xcb_keysym_t keysym;
36 /** Keycode */
37 xcb_keycode_t keycode;
38 /** Lua function to execute. */
39 luaA_ref fct;
40 } keybinding_t;
42 keybinding_t *keybinding_find(const xcb_key_press_event_t *);
43 xcb_keysym_t key_getkeysym(xcb_keycode_t, uint16_t);
45 #endif