summaryrefslogtreecommitdiffstats
path: root/wm.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 11:10:05 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 11:10:05 +0200
commit3a69c5173cdd24959410870bec2a10a76272e034 (patch)
tree993f2fb75b1c44213d0c95a4da8b3a18daa739fe /wm.c
parentadded several other stuff (diff)
downloaddwm-3a69c5173cdd24959410870bec2a10a76272e034.tar.gz
dwm-3a69c5173cdd24959410870bec2a10a76272e034.zip
implemented pipe_spawn
Diffstat (limited to '')
-rw-r--r--wm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/wm.c b/wm.c
index b8b3053..843aaac 100644
--- a/wm.c
+++ b/wm.c
@@ -21,7 +21,7 @@ Cursor cursor[CurLast];
21XRectangle rect, barrect; 21XRectangle rect, barrect;
22Bool running = True; 22Bool running = True;
23 23
24char *bartext, *shell; 24char *bartext;
25int screen, sel_screen; 25int screen, sel_screen;
26unsigned int lock_mask, numlock_mask; 26unsigned int lock_mask, numlock_mask;
27 27
@@ -56,7 +56,7 @@ scan_wins()
56 if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) 56 if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
57 continue; 57 continue;
58 if(wa.map_state == IsViewable) 58 if(wa.map_state == IsViewable)
59 /*manage*/; 59 manage(create_client(wins[i], &wa));
60 } 60 }
61 } 61 }
62 if(wins) 62 if(wins)
@@ -219,9 +219,6 @@ main(int argc, char *argv[])
219 if(other_wm_running) 219 if(other_wm_running)
220 error("gridwm: another window manager is already running\n"); 220 error("gridwm: another window manager is already running\n");
221 221
222 if(!(shell = getenv("SHELL")))
223 shell = "/bin/sh";
224
225 rect.x = rect.y = 0; 222 rect.x = rect.y = 0;
226 rect.width = DisplayWidth(dpy, screen); 223 rect.width = DisplayWidth(dpy, screen);
227 rect.height = DisplayHeight(dpy, screen); 224 rect.height = DisplayHeight(dpy, screen);