dwm-meillo

diff wm.c @ 6:e0cefb3981c8

implemented pipe_spawn
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 11:10:05 +0200
parents e5018cae273f
children 49e2fc9fb94f
line diff
     1.1 --- a/wm.c	Mon Jul 10 22:16:48 2006 +0200
     1.2 +++ b/wm.c	Tue Jul 11 11:10:05 2006 +0200
     1.3 @@ -21,7 +21,7 @@
     1.4  XRectangle rect, barrect;
     1.5  Bool running = True;
     1.6  
     1.7 -char *bartext, *shell;
     1.8 +char *bartext;
     1.9  int screen, sel_screen;
    1.10  unsigned int lock_mask, numlock_mask;
    1.11  
    1.12 @@ -56,7 +56,7 @@
    1.13  			if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
    1.14  				continue;
    1.15  			if(wa.map_state == IsViewable)
    1.16 -				/*manage*/;
    1.17 +				manage(create_client(wins[i], &wa));
    1.18  		}
    1.19  	}
    1.20  	if(wins)
    1.21 @@ -219,9 +219,6 @@
    1.22  	if(other_wm_running)
    1.23  		error("gridwm: another window manager is already running\n");
    1.24  
    1.25 -	if(!(shell = getenv("SHELL")))
    1.26 -		shell = "/bin/sh";
    1.27 -
    1.28  	rect.x = rect.y = 0;
    1.29  	rect.width = DisplayWidth(dpy, screen);
    1.30  	rect.height = DisplayHeight(dpy, screen);