From 862b0d541d76fb350bff36a2fef5f6ab02625d02 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Sat, 6 Sep 2008 09:34:49 +0100 Subject: I prefer doing the check in showhide --- dwm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 50bbd6a..965d1e3 100644 --- a/dwm.c +++ b/dwm.c @@ -272,8 +272,7 @@ applyrules(Client *c) { void arrange(void) { - if(stack) - showhide(stack); + showhide(stack); focus(NULL); if(lt[sellt]->arrange) lt[sellt]->arrange(); @@ -1369,15 +1368,18 @@ setup(void) { void showhide(Client *c) { + if(!c) + return; if(ISVISIBLE(c)) { /* show clients top down */ XMoveWindow(dpy, c->win, c->x, c->y); if(!lt[sellt]->arrange || c->isfloating) resize(c, c->x, c->y, c->w, c->h, True); + showhide(c->snext); } - if(c->snext) /* hide clients bottom up */ + else { /* hide clients bottom up */ showhide(c->snext); - if(!ISVISIBLE(c)) XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); + } } void -- cgit 1.4.1-2-gfad0 /> Unnamed repository; edit this file 'description' to name the repository.
about summary refs log tree commit diff stats
path: root/config.default.h
blob: 6147c9896dc37497b08de0b97ee2b8f16799b2a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64