aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2016-09-01 18:34:04 +0000
committerokan2016-09-01 18:34:04 +0000
commit574d0d0b3a5baa0f3af9163d5ffce6f8ba3f8324 (patch)
treecdce8da2d39c0e4a3b5adf37a8171d09e020c89a
parent42cb375bf43aef992c3e9c192e2ef9b6d8743973 (diff)
downloadcwm-574d0d0b3a5baa0f3af9163d5ffce6f8ba3f8324.tar.gz
Remove redundant minimum client size adjustment (minw and minh are
always positive since r1.214); from Vadim Vygonets.
-rw-r--r--client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client.c b/client.c
index 0f70675..d3f4aad 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.214 2015/11/12 18:33:30 okan Exp $
+ * $OpenBSD: client.c,v 1.215 2016/09/01 18:34:04 okan Exp $
*/
#include <sys/types.h>
@@ -898,9 +898,6 @@ client_applysizehints(struct client_ctx *cc)
if (cc->hint.maxh)
cc->geom.h = MIN(cc->geom.h, cc->hint.maxh);
- cc->geom.w = MAX(cc->geom.w, 1);
- cc->geom.h = MAX(cc->geom.h, 1);
-
cc->dim.w = (cc->geom.w - cc->hint.basew) / cc->hint.incw;
cc->dim.h = (cc->geom.h - cc->hint.baseh) / cc->hint.inch;
}