about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 17:48:54 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 17:48:54 +0200
commit4ad20ffc2c23d29329bc7349985d889f2cb45612 (patch)
tree24a0f665a6e14c68784242f5af875caf9d727a7d
parent57e6e3bb80b5fc4709de3f8b716a8b8065897c7a (diff)
downloaddwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.tar.gz
fixed
-rw-r--r--client.c12
-rw-r--r--event.c2
2 files changed, 5 insertions, 9 deletions
diff --git a/client.c b/client.c
index 6a231b9..14edf7c 100644
--- a/client.c
+++ b/client.c
@@ -49,10 +49,12 @@ ban(Client *c)
 void
 focus(Client *c)
 {
-	if (!issel)
-		return;
 	Client *old = sel;
 
+	if (!issel)
+		return;
+	if(sel && sel->ismax)
+		togglemax(NULL);
 	sel = c;
 	if(old && old != c)
 		drawtitle(old);
@@ -68,9 +70,6 @@ focusnext(Arg *arg)
 	if(!sel)
 		return;
 
-	if(sel->ismax)
-		togglemax(NULL);
-
 	if(!(c = getnext(sel->next)))
 		c = getnext(clients);
 	if(c) {
@@ -87,9 +86,6 @@ focusprev(Arg *arg)
 	if(!sel)
 		return;
 
-	if(sel->ismax)
-		togglemax(NULL);
-
 	if(!(c = getprev(sel->prev))) {
 		for(c = clients; c && c->next; c = c->next);
 		c = getprev(c);
diff --git a/event.c b/event.c
index 125c6a2..5c21fcb 100644
--- a/event.c
+++ b/event.c
@@ -144,11 +144,11 @@ buttonpress(XEvent *e)
 static void
 configurerequest(XEvent *e)
 {
+	unsigned long newmask;
 	Client *c;
 	XConfigureRequestEvent *ev = &e->xconfigurerequest;
 	XEvent synev;
 	XWindowChanges wc;
-	unsigned long newmask;
 
 	if((c = getclient(ev->window))) {
 		gravitate(c, True);
='author Kartik Agaram <vc@akkartik.com> 2020-01-01 23:30:47 -0800 committer Kartik Agaram <vc@akkartik.com> 2020-01-01 23:30:47 -0800 5862' href='/akkartik/mu/commit/SubX-addressing-modes.md?h=hlt&id=01013f2ad2132dd945c6ceb168b85dc52e18882c'>01013f2a ^
e2e0f5cc ^
01013f2a ^


e2e0f5cc ^
01013f2a ^



e2e0f5cc ^
01013f2a ^





































9e5e87ca ^

01013f2a ^













9a524793 ^






7817fdb2 ^


dff67029 ^
7817fdb2 ^



dff67029 ^
7817fdb2 ^

dff67029 ^
7817fdb2 ^










9a524793 ^


7817fdb2 ^





9a524793 ^







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