dwm-meillo

diff wm.h @ 18:1efa34c6e1b6

added mouse-based resizals
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 21:24:10 +0200
parents 359b6e563b95
children b5510d0c6d43
line diff
     1.1 --- a/wm.h	Tue Jul 11 18:59:09 2006 +0200
     1.2 +++ b/wm.h	Tue Jul 11 21:24:10 2006 +0200
     1.3 @@ -11,6 +11,22 @@
     1.4  
     1.5  #define WM_PROTOCOL_DELWIN 1
     1.6  
     1.7 +typedef struct Client Client;
     1.8 +typedef struct Key Key;
     1.9 +typedef enum Align Align;
    1.10 +
    1.11 +enum Align {
    1.12 +	NORTH = 0x01,
    1.13 +	EAST  = 0x02,
    1.14 +	SOUTH = 0x04,
    1.15 +	WEST  = 0x08,
    1.16 +	NEAST = NORTH | EAST,
    1.17 +	NWEST = NORTH | WEST,
    1.18 +	SEAST = SOUTH | EAST,
    1.19 +	SWEST = SOUTH | WEST,
    1.20 +	CENTER = NEAST | SWEST
    1.21 +};
    1.22 +
    1.23  /* atoms */
    1.24  enum { WMProtocols, WMDelete, WMLast };
    1.25  enum { NetSupported, NetWMName, NetLast };
    1.26 @@ -21,9 +37,6 @@
    1.27  /* rects */
    1.28  enum { RFloat, RGrid, RLast };
    1.29  
    1.30 -typedef struct Client Client;
    1.31 -typedef struct Key Key;
    1.32 -
    1.33  struct Client {
    1.34  	char name[256];
    1.35  	char tag[256];
    1.36 @@ -75,14 +88,19 @@
    1.37  extern void focus(Client *c);
    1.38  extern void update_name(Client *c);
    1.39  extern void draw_client(Client *c);
    1.40 +extern void resize(Client *c);
    1.41  
    1.42  /* event.c */
    1.43 -extern unsigned int flush_events(long even_mask);
    1.44 +extern unsigned int discard_events(long even_mask);
    1.45  
    1.46  /* key.c */
    1.47  extern void update_keys();
    1.48  extern void keypress(XEvent *e);
    1.49  
    1.50 +/* mouse.c */
    1.51 +extern void mresize(Client *c);
    1.52 +extern void mmove(Client *c);
    1.53 +
    1.54  /* wm.c */
    1.55  extern int error_handler(Display *dpy, XErrorEvent *error);
    1.56  extern void send_message(Window w, Atom a, long value);