awesome/event.h

47 lines
2.2 KiB
C
Raw Normal View History

/*
2007-09-12 14:29:51 +02:00
* event.h - event handlers header
*
2008-01-02 16:59:43 +01:00
* Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
2007-09-12 14:29:51 +02:00
*/
2007-09-05 20:15:00 +02:00
#ifndef AWESOME_EVENT_H
#define AWESOME_EVENT_H
2007-09-05 20:15:00 +02:00
2008-03-21 16:50:17 +01:00
#include <xcb/xcb.h>
#include <xcb/randr.h>
#include <xcb/shape.h>
2007-09-05 20:15:00 +02:00
2008-03-21 16:50:17 +01:00
#define CLEANMASK(mask) (mask & ~(globalconf.numlockmask | XCB_MOD_MASK_LOCK))
2007-12-27 15:49:00 +01:00
2008-03-21 16:50:17 +01:00
int event_handle_buttonpress(void *, xcb_connection_t *, xcb_button_press_event_t *);
int event_handle_configurerequest(void *, xcb_connection_t *, xcb_configure_request_event_t *);
int event_handle_configurenotify(void *, xcb_connection_t *, xcb_configure_notify_event_t *);
int event_handle_destroynotify(void *, xcb_connection_t *, xcb_destroy_notify_event_t *);
int event_handle_enternotify(void *, xcb_connection_t *, xcb_enter_notify_event_t *);
int event_handle_expose(void *, xcb_connection_t *, xcb_expose_event_t *);
int event_handle_keypress(void *, xcb_connection_t *, xcb_key_press_event_t *);
int event_handle_maprequest(void *, xcb_connection_t *, xcb_map_request_event_t *);
int event_handle_propertynotify(void *, xcb_connection_t *, xcb_property_notify_event_t *);
int event_handle_unmapnotify(void *, xcb_connection_t *, xcb_unmap_notify_event_t *);
int event_handle_shape(void *, xcb_connection_t *, xcb_shape_notify_event_t *);
int event_handle_randr_screen_change_notify(void *, xcb_connection_t *, xcb_randr_screen_change_notify_event_t *);
int event_handle_clientmessage(void *, xcb_connection_t *, xcb_client_message_event_t *);
2007-09-05 20:15:00 +02:00
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80