summaryrefslogtreecommitdiffstats
path: root/wm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/wm.c b/wm.c
index 8c5814f..ef4721d 100644
--- a/wm.c
+++ b/wm.c
@@ -20,19 +20,18 @@ Atom net_atom[NetLast];
20Cursor cursor[CurLast]; 20Cursor cursor[CurLast];
21XRectangle rect, barrect; 21XRectangle rect, barrect;
22Bool running = True; 22Bool running = True;
23Client *clients = NULL;
24 23
25char *bartext, tag[256]; 24char *bartext, tag[256];
26int screen, sel_screen; 25int screen, sel_screen;
27 26
28/* draw structs */
29Brush brush = {0}; 27Brush brush = {0};
28Client *clients = NULL;
30 29
31enum { WM_PROTOCOL_DELWIN = 1 }; 30enum { WM_PROTOCOL_DELWIN = 1 };
32 31
33static Bool other_wm_running; 32static Bool other_wm_running;
34static int (*x_error_handler) (Display *, XErrorEvent *);
35static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; 33static char version[] = "gridwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
34static int (*x_error_handler) (Display *, XErrorEvent *);
36 35
37static void 36static void
38usage() 37usage()
@@ -56,7 +55,7 @@ scan_wins()
56 if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) 55 if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
57 continue; 56 continue;
58 if(wa.map_state == IsViewable) 57 if(wa.map_state == IsViewable)
59 manage(create_client(wins[i], &wa)); 58 manage(wins[i], &wa);
60 } 59 }
61 } 60 }
62 if(wins) 61 if(wins)
@@ -69,7 +68,7 @@ scan_wins()
69 * Other types of errors call Xlib's default error handler, which 68 * Other types of errors call Xlib's default error handler, which
70 * calls exit(). 69 * calls exit().
71 */ 70 */
72static int 71int
73error_handler(Display *dpy, XErrorEvent *error) 72error_handler(Display *dpy, XErrorEvent *error)
74{ 73{
75 if(error->error_code == BadWindow 74 if(error->error_code == BadWindow