diff options
Diffstat (limited to '')
| -rw-r--r-- | wm.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -21,7 +21,7 @@ Cursor cursor[CurLast]; | |||
| 21 | XRectangle rect, barrect; | 21 | XRectangle rect, barrect; |
| 22 | Bool running = True; | 22 | Bool running = True; |
| 23 | 23 | ||
| 24 | char *bartext, *shell; | 24 | char *bartext; |
| 25 | int screen, sel_screen; | 25 | int screen, sel_screen; |
| 26 | unsigned int lock_mask, numlock_mask; | 26 | unsigned 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); |
