aewl
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 diff
1.1 --- a/wm.c Tue Jul 11 12:52:57 2006 +0200 1.2 +++ b/wm.c Tue Jul 11 13:02:22 2006 +0200 1.3 @@ -20,19 +20,18 @@ 1.4 Cursor cursor[CurLast]; 1.5 XRectangle rect, barrect; 1.6 Bool running = True; 1.7 -Client *clients = NULL; 1.8 1.9 char *bartext, tag[256]; 1.10 int screen, sel_screen; 1.11 1.12 -/* draw structs */ 1.13 Brush brush = {0}; 1.14 +Client *clients = NULL; 1.15 1.16 enum { WM_PROTOCOL_DELWIN = 1 }; 1.17 1.18 static Bool other_wm_running; 1.19 +static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; 1.20 static int (*x_error_handler) (Display *, XErrorEvent *); 1.21 -static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; 1.22 1.23 static void 1.24 usage() 1.25 @@ -56,7 +55,7 @@ 1.26 if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) 1.27 continue; 1.28 if(wa.map_state == IsViewable) 1.29 - manage(create_client(wins[i], &wa)); 1.30 + manage(wins[i], &wa); 1.31 } 1.32 } 1.33 if(wins) 1.34 @@ -69,7 +68,7 @@ 1.35 * Other types of errors call Xlib's default error handler, which 1.36 * calls exit(). 1.37 */ 1.38 -static int 1.39 +int 1.40 error_handler(Display *dpy, XErrorEvent *error) 1.41 { 1.42 if(error->error_code == BadWindow