main.c
changeset 50 148f25ed0ad7
parent 49 466591c2f967
child 51 035617ee18d1
equal deleted inserted replaced
49:466591c2f967 50:148f25ed0ad7
    36 char stext[1024];
    36 char stext[1024];
    37 int tsel = Tdev; /* default tag */
    37 int tsel = Tdev; /* default tag */
    38 int screen, sx, sy, sw, sh, th;
    38 int screen, sx, sy, sw, sh, th;
    39 
    39 
    40 DC dc = {0};
    40 DC dc = {0};
    41 Client *cstart = NULL;
    41 Client *clients = NULL;
    42 Client *cend = NULL;
    42 Client *sel = NULL;
    43 Client *csel = NULL;
       
    44 
    43 
    45 static Bool other_wm_running;
    44 static Bool other_wm_running;
    46 static const char version[] =
    45 static const char version[] =
    47 	"dwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
    46 	"dwm - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
    48 static int (*x_error_handler) (Display *, XErrorEvent *);
    47 static int (*x_error_handler) (Display *, XErrorEvent *);
   167 }
   166 }
   168 
   167 
   169 static void
   168 static void
   170 cleanup()
   169 cleanup()
   171 {
   170 {
   172 	while(csel)
   171 	while(sel) {
   173 		unmanage(csel);
   172 		resize(sel);
       
   173 		unmanage(sel);
       
   174 	}
   174 	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
   175 	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
   175 }
   176 }
   176 
   177 
   177 void
   178 void
   178 quit(Arg *arg)
   179 quit(Arg *arg)