about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-27 12:05:47 +0200
committerarg@mig29 <unknown>2006-10-27 12:05:47 +0200
commit2b13e7466f4912e3778bf59e6aec3065443f08fe (patch)
tree2595de166d7113d6b0cf6c96139f7ae25fb38b39
parent0982e47408115de4a604d9365b1014ae6205b3a9 (diff)
downloaddwm-2b13e7466f4912e3778bf59e6aec3065443f08fe.tar.gz
applied sanders max size fix
-rw-r--r--client.c2
-rw-r--r--view.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/client.c b/client.c
index 988d3ca..d04692d 100644
--- a/client.c
+++ b/client.c
@@ -233,7 +233,7 @@ manage(Window w, XWindowAttributes *wa) {
 	settags(c, getclient(trans));
 	if(!c->isfloat)
 		c->isfloat = trans
-			|| (c->maxw && c->minw &&
+			|| (c->maxw && c->minw && c->maxh && c->minh &&
 				c->maxw == c->minw && c->maxh == c->minh);
 	resizetitle(c);
 	if(clients)
diff --git a/view.c b/view.c
index daf0711..facbb4c 100644
--- a/view.c
+++ b/view.c
@@ -44,6 +44,10 @@ reorder(void) {
 static void
 togglemax(Client *c) {
 	XEvent ev;
+		
+	if (x->maxw && x->minw && x->maxh && x->minh &&
+			x->maxw == x->minw && x->maxh == x->minh)
+		return;
 
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x; c->x = sx;
ss='alt'>
58bc15b ^

58a0f43 ^
58bc15b ^









062f00e ^
c295508 ^


58bc15b ^



c4c8648 ^


58bc15b ^



















































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