2 * event.h - event handlers header
4 * Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
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_EVENT_H
23 #define AWESOME_EVENT_H
26 #include <xcb/randr.h>
28 #define CLEANMASK(mask) (mask & ~(globalconf.numlockmask | XCB_MOD_MASK_LOCK))
30 int event_handle_buttonpress(void *, xcb_connection_t
*, xcb_button_press_event_t
*);
31 int event_handle_configurerequest(void *, xcb_connection_t
*, xcb_configure_request_event_t
*);
32 int event_handle_configurenotify(void *, xcb_connection_t
*, xcb_configure_notify_event_t
*);
33 int event_handle_destroynotify(void *, xcb_connection_t
*, xcb_destroy_notify_event_t
*);
34 int event_handle_enternotify(void *, xcb_connection_t
*, xcb_enter_notify_event_t
*);
35 int event_handle_expose(void *, xcb_connection_t
*, xcb_expose_event_t
*);
36 int event_handle_keypress(void *, xcb_connection_t
*, xcb_key_press_event_t
*);
37 int event_handle_maprequest(void *, xcb_connection_t
*, xcb_map_request_event_t
*);
38 int event_handle_propertynotify(void *, xcb_connection_t
*, xcb_property_notify_event_t
*);
39 int event_handle_unmapnotify(void *, xcb_connection_t
*, xcb_unmap_notify_event_t
*);
40 int event_handle_randr_screen_change_notify(void *, xcb_connection_t
*, xcb_randr_screen_change_notify_event_t
*);
41 int event_handle_clientmessage(void *, xcb_connection_t
*, xcb_client_message_event_t
*);
44 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80