2007-10-03 17:26:14 +02:00
|
|
|
/*
|
2007-09-12 14:29:51 +02:00
|
|
|
* event.h - event handlers header
|
2007-10-03 17:26:14 +02:00
|
|
|
*
|
2009-09-14 20:31:27 +02:00
|
|
|
* Copyright © 2007-2009 Julien Danjou <julien@danjou.info>
|
2007-10-03 17:26:14 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2007-09-10 16:11:57 +02:00
|
|
|
#ifndef AWESOME_EVENT_H
|
|
|
|
#define AWESOME_EVENT_H
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2014-03-30 20:07:48 +02:00
|
|
|
#include "banning.h"
|
|
|
|
#include "globalconf.h"
|
|
|
|
#include "stack.h"
|
|
|
|
|
|
|
|
#include <xcb/xcb.h>
|
2008-08-26 19:35:37 +02:00
|
|
|
|
2010-10-15 18:48:07 +02:00
|
|
|
/* luaa.c */
|
|
|
|
void luaA_emit_refresh(void);
|
|
|
|
|
2015-08-14 14:39:43 +02:00
|
|
|
/* objects/drawin.c */
|
|
|
|
void drawin_refresh(void);
|
|
|
|
|
2014-03-30 20:07:48 +02:00
|
|
|
/* objects/client.c */
|
2016-09-15 18:31:29 +02:00
|
|
|
void client_refresh(void);
|
2014-03-30 20:07:48 +02:00
|
|
|
void client_focus_refresh(void);
|
2016-10-07 00:46:57 +02:00
|
|
|
void client_destroy_later(void);
|
2014-03-30 20:07:48 +02:00
|
|
|
|
2016-04-15 20:29:08 +02:00
|
|
|
/* objects/screen.c */
|
|
|
|
void screen_refresh(void);
|
|
|
|
|
2008-08-26 19:35:37 +02:00
|
|
|
static inline int
|
2009-04-10 17:39:11 +02:00
|
|
|
awesome_refresh(void)
|
2008-08-26 19:35:37 +02:00
|
|
|
{
|
2016-04-15 20:29:08 +02:00
|
|
|
screen_refresh();
|
2010-10-15 18:48:07 +02:00
|
|
|
luaA_emit_refresh();
|
2015-08-14 14:39:43 +02:00
|
|
|
drawin_refresh();
|
2016-09-15 18:31:29 +02:00
|
|
|
client_refresh();
|
2016-10-06 18:50:13 +02:00
|
|
|
banning_refresh();
|
|
|
|
stack_refresh();
|
2016-10-07 00:46:57 +02:00
|
|
|
client_destroy_later();
|
2009-04-10 17:39:11 +02:00
|
|
|
return xcb_flush(globalconf.connection);
|
2008-08-26 19:35:37 +02:00
|
|
|
}
|
|
|
|
|
2016-04-09 15:44:54 +02:00
|
|
|
void event_init(void);
|
2016-01-10 19:27:55 +01:00
|
|
|
void event_handle(xcb_generic_event_t *);
|
|
|
|
void event_drawable_under_mouse(lua_State *, int);
|
2007-09-07 12:29:54 +02:00
|
|
|
|
2007-09-05 20:15:00 +02:00
|
|
|
#endif
|
2011-09-11 16:50:01 +02:00
|
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|