about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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);
g/suckless/dwm/blame/dwm.html?h=5.7.2&id=ce846e941bee651ae5f17845f670f016040902f9'>^
605630c ^
650a1fb ^
eb184e0 ^
650a1fb ^

3791ec0 ^
eb184e0 ^



3791ec0 ^





eb184e0 ^



3791ec0 ^

eb184e0 ^



3791ec0 ^

eb184e0 ^











3791ec0 ^


eb184e0 ^

3791ec0 ^

eb184e0 ^


6458d72 ^

605630c ^
6649dcc ^
3791ec0 ^
650a1fb ^
605630c ^
1e7e57d ^
6649dcc ^



1e7e57d ^

3791ec0 ^
650a1fb ^
6649dcc ^
650a1fb ^

6649dcc ^
650a1fb ^
6458d72 ^
7faa8a9 ^
6649dcc ^
7faa8a9 ^
6458d72 ^


f60c597 ^
6458d72 ^

650a1fb ^

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