about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-18 11:45:32 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-18 11:45:32 +0200
commit0aaa9a21f334a5c75b7efce2712384f57bd370cd (patch)
tree69a9ca6c1c808555ddbe9ef51620c7b1e51f1557
parent4f8b08d330a6c377ab919f48b8e922d1c5ded601 (diff)
downloaddwm-0aaa9a21f334a5c75b7efce2712384f57bd370cd.tar.gz
pop on heretag
-rw-r--r--client.c21
-rw-r--r--dwm.h1
-rw-r--r--tag.c2
3 files changed, 16 insertions, 8 deletions
diff --git a/client.c b/client.c
index 166e979..fa48644 100644
--- a/client.c
+++ b/client.c
@@ -268,6 +268,18 @@ maximize(Arg *arg)
 }
 
 void
+pop(Client *c)
+{
+	Client **l;
+	for(l = &clients; *l && *l != c; l = &(*l)->next);
+	*l = c->next;
+
+	c->next = clients; /* pop */
+	clients = c;
+	arrange(NULL);
+}
+
+void
 resize(Client *c, Bool inc)
 {
 	XConfigureEvent e;
@@ -405,7 +417,7 @@ unmanage(Client *c)
 void
 zoom(Arg *arg)
 {
-	Client **l, *c;
+	Client *c;
 
 	if(!sel)
 		return;
@@ -415,11 +427,6 @@ zoom(Arg *arg)
 			sel = c;
 	}
 
-	for(l = &clients; *l && *l != sel; l = &(*l)->next);
-	*l = sel->next;
-
-	sel->next = clients; /* pop */
-	clients = sel;
-	arrange(NULL);
+	pop(sel);
 	focus(sel);
 }
diff --git a/dwm.h b/dwm.h
index 0d37e99..f2356a3 100644
--- a/dwm.h
+++ b/dwm.h
@@ -118,6 +118,7 @@ extern void killclient(Arg *arg);
 extern void lower(Client *c);
 extern void manage(Window w, XWindowAttributes *wa);
 extern void maximize(Arg *arg);
+extern void pop(Client *c);
 extern void resize(Client *c, Bool inc);
 extern void setsize(Client *c);
 extern void settitle(Client *c);
diff --git a/tag.c b/tag.c
index 3837fbd..fce3c6e 100644
--- a/tag.c
+++ b/tag.c
@@ -136,7 +136,7 @@ heretag(Arg *arg)
 	for(i = 0; i < TLast; i++)
 		c->tags[i] = NULL;
 	c->tags[tsel] = tags[tsel];
-	arrange(NULL);
+	pop(c);
 	focus(c);
 }
 
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145














                                                                       


































































                                                                           









                                                               
                                                     
                                               

                                                  
 





                                                                                    





                                                                               

























                                                                                         






                                                                                     
 

                          
k K. Agaram <vc@akkartik.com>  2016-03-13 20:26:47 -0700
committer  Kartik K. Agaram <vc@akkartik.com>  2016-03-13 20:26:47 -0700

2773 - switch to 'int'' href='/akkartik/mu/commit/041jump_target.cc?h=hlt&id=b24eb4766ad12eceaafa2ee0d620e070e21a3293'>b24eb476 ^
795f5244 ^
e6692482 ^
fa6d93b2 ^



4071055a ^
dc1323e9 ^
e6692482 ^
fa6d93b2 ^



4071055a ^
dc1323e9 ^
e6692482 ^
fa6d93b2 ^
4071055a ^
dc1323e9 ^
e6692482 ^

fa6d93b2 ^
4071055a ^
dc1323e9 ^




b24eb476 ^
e4630643 ^
9dcbec39 ^
4adb09bc ^
e4630643 ^

ef96f57c ^
0f125d5f ^
4adb09bc ^
9dcbec39 ^
4adb09bc ^


f3760b0f ^
9dcbec39 ^
4adb09bc ^


f22250a1 ^
dc1323e9 ^

4adb09bc ^
555d95c1 ^
4adb09bc ^

dc1323e9 ^
1ead3562 ^
dc1323e9 ^

8ba8f0f6 ^
bc643692 ^
dc1323e9 ^






1ead3562 ^
dc1323e9 ^

bc643692 ^

dc1323e9 ^






1ead3562 ^
dc1323e9 ^

bc643692 ^

dc1323e9 ^




4071055a ^

1ead3562 ^
4071055a ^
bc643692 ^


8ba8f0f6 ^
bc643692 ^
4071055a ^
bc643692 ^
4071055a ^


4adb09bc ^
fa6d93b2 ^

1ead3562 ^
fa6d93b2 ^





1ead3562 ^
fa6d93b2 ^



5f98a10c ^

1ead3562 ^
4adb09bc ^




5f98a10c ^
4adb09bc ^

5f98a10c ^
1ead3562 ^
4adb09bc ^








9dcbec39 ^
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180