Mercurial > dwm-meillo
diff wm.c @ 10:703255003abb
changed how manage client works
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 13:02:22 +0200 |
parents | d567f430a81d |
children | 5cc5e55a132d |
line wrap: on
line diff
--- a/wm.c Tue Jul 11 12:52:57 2006 +0200 +++ b/wm.c Tue Jul 11 13:02:22 2006 +0200 @@ -20,19 +20,18 @@ Cursor cursor[CurLast]; XRectangle rect, barrect; Bool running = True; -Client *clients = NULL; char *bartext, tag[256]; int screen, sel_screen; -/* draw structs */ Brush brush = {0}; +Client *clients = NULL; enum { WM_PROTOCOL_DELWIN = 1 }; static Bool other_wm_running; +static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; static int (*x_error_handler) (Display *, XErrorEvent *); -static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; static void usage() @@ -56,7 +55,7 @@ if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) continue; if(wa.map_state == IsViewable) - manage(create_client(wins[i], &wa)); + manage(wins[i], &wa); } } if(wins) @@ -69,7 +68,7 @@ * Other types of errors call Xlib's default error handler, which * calls exit(). */ -static int +int error_handler(Display *dpy, XErrorEvent *error) { if(error->error_code == BadWindow