dwm-meillo

diff wm.h @ 13:5cc5e55a132d

added protocol killing stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 16:14:22 +0200
parents 703255003abb
children 5c078b66347b
line diff
     1.1 --- a/wm.h	Tue Jul 11 14:53:22 2006 +0200
     1.2 +++ b/wm.h	Tue Jul 11 16:14:22 2006 +0200
     1.3 @@ -9,7 +9,10 @@
     1.4  
     1.5  #include <X11/Xutil.h>
     1.6  
     1.7 +#define WM_PROTOCOL_DELWIN 1
     1.8 +
     1.9  /* atoms */
    1.10 +enum { WMProtocols, WMDelete, WMLast };
    1.11  enum { NetSupported, NetWMName, NetLast };
    1.12  
    1.13  /* cursor */
    1.14 @@ -25,6 +28,7 @@
    1.15  	char name[256];
    1.16  	char tag[256];
    1.17  	unsigned int border;
    1.18 +	int proto;
    1.19  	Bool fixedsize;
    1.20  	Window win;
    1.21  	Window trans;
    1.22 @@ -44,18 +48,17 @@
    1.23  
    1.24  extern Display *dpy;
    1.25  extern Window root, barwin;
    1.26 -extern Atom net_atom[NetLast];
    1.27 +extern Atom wm_atom[WMLast], net_atom[NetLast];
    1.28  extern Cursor cursor[CurLast];
    1.29  extern XRectangle rect, barrect;
    1.30 -extern Bool running;
    1.31 -extern Bool grid;
    1.32 +extern Bool running, sel_screen, grid;
    1.33  extern void (*handler[LASTEvent]) (XEvent *);
    1.34  
    1.35 -extern int screen, sel_screen;
    1.36 +extern int screen;
    1.37  extern char *bartext, tag[256];
    1.38  
    1.39  extern Brush brush;
    1.40 -extern Client *clients;
    1.41 +extern Client *clients, *stack;
    1.42  
    1.43  /* bar.c */
    1.44  extern void draw_bar();
    1.45 @@ -66,8 +69,13 @@
    1.46  
    1.47  /* client.c */
    1.48  extern void manage(Window w, XWindowAttributes *wa);
    1.49 -void unmanage(Client *c);
    1.50 -extern Client * getclient(Window w);
    1.51 +extern void unmanage(Client *c);
    1.52 +extern Client *getclient(Window w);
    1.53 +extern void focus(Client *c);
    1.54 +extern void update_name(Client *c);
    1.55 +
    1.56 +/* event.c */
    1.57 +extern unsigned int flush_events(long even_mask);
    1.58  
    1.59  /* key.c */
    1.60  extern void update_keys();
    1.61 @@ -75,3 +83,5 @@
    1.62  
    1.63  /* wm.c */
    1.64  extern int error_handler(Display *dpy, XErrorEvent *error);
    1.65 +extern void send_message(Window w, Atom a, long value);
    1.66 +extern int win_proto(Window w);