diff options
author | oga | 2009-05-18 00:14:19 +0000 |
---|---|---|
committer | oga | 2009-05-18 00:14:19 +0000 |
commit | 7c57259b07feb38b06d052c9e0b5f2970b45a351 (patch) | |
tree | 95f777344c57b819639965a5a8af0e1d03146bc0 /calmwm.h | |
parent | bd4c82d0c649eb5f87395f2cd705dfba9013a257 (diff) | |
download | cwm-7c57259b07feb38b06d052c9e0b5f2970b45a351.tar.gz |
Rip out the event layer and just use a static array of callbacks like
every other window manager since twm.
The event layer is very nice, very shiny, very flexible, and very much
underutilised. We don't need any of those shiny features so it's
probably better to earn ourselves 1k smaller text size instead.
ok todd@, okan@
Diffstat (limited to '')
-rw-r--r-- | calmwm.h | 39 |
1 files changed, 2 insertions, 37 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.88 2009/05/17 23:40:57 okan Exp $ + * $Id: calmwm.h,v 1.89 2009/05/18 00:14:19 oga Exp $ */ #ifndef _CALMWM_H_ @@ -172,18 +172,6 @@ struct autogroupwin { TAILQ_HEAD(autogroupwin_q, autogroupwin); -/* NULL/0 values indicate match any. */ -struct xevent { - TAILQ_ENTRY(xevent) entry; - Window *xev_win; - Window *xev_root; - int xev_type; - void (*xev_cb)(struct xevent *, XEvent *); - void *xev_arg; -}; - -TAILQ_HEAD(xevent_q, xevent); - #define CWM_MOVE 0x01 #define CWM_RESIZE 0x02 #define CWM_PTRMOVE 0x04 @@ -369,33 +357,9 @@ struct menu *menu_filter(struct menu_q *, char *, char *, int, void (*)(struct menu *, int)); void menu_init(struct screen_ctx *); -void xev_handle_maprequest(struct xevent *, XEvent *); -void xev_handle_unmapnotify(struct xevent *, XEvent *); -void xev_handle_destroynotify(struct xevent *, XEvent *); -void xev_handle_configurerequest(struct xevent *, XEvent *); -void xev_handle_propertynotify(struct xevent *, XEvent *); -void xev_handle_enternotify(struct xevent *, XEvent *); -void xev_handle_leavenotify(struct xevent *, XEvent *); -void xev_handle_buttonpress(struct xevent *, XEvent *); -void xev_handle_buttonrelease(struct xevent *, XEvent *); -void xev_handle_keypress(struct xevent *, XEvent *); -void xev_handle_keyrelease(struct xevent *, XEvent *); -void xev_handle_expose(struct xevent *, XEvent *); -void xev_handle_clientmessage(struct xevent *, XEvent *); -void xev_handle_randr(struct xevent *, XEvent *); -void xev_handle_mapping(struct xevent *, XEvent *); - -#define XEV_QUICK(a, b, c, d, e) do { \ - xev_register(xev_new(a, b, c, d, e)); \ -} while (0) - /* XXX should be xu_ */ void xev_reconfig(struct client_ctx *); -void xev_init(void); -struct xevent *xev_new(Window *, Window *, int, - void (*)(struct xevent *, XEvent *), void *); -void xev_register(struct xevent *); void xev_loop(void); void xu_getatoms(void); @@ -505,6 +469,7 @@ void search_match_exec(struct menu_q *, struct menu_q *, void group_init(void); void group_hidetoggle(int); +void group_only(int); void group_cycle(int); void group_only(int); void group_sticky(struct client_ctx *); |