summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2015-11-12 18:33:30 +0000
committerokan <okan>2015-11-12 18:33:30 +0000
commit4aca2b876485fa011298c9d7c0fe5b296b2ed122 (patch)
tree7e5a64d32500449bb7ee1f2e731baf3591b6717a /client.c
parent9a48836ceb40313cd12c05781d57f291401de7b0 (diff)
downloadcwm-4aca2b876485fa011298c9d7c0fe5b296b2ed122.tar.gz
cwm-4aca2b876485fa011298c9d7c0fe5b296b2ed122.tar.xz
cwm-4aca2b876485fa011298c9d7c0fe5b296b2ed122.zip
If a client sets hints, honor them for kb resize requests, just like we
do for mouse based resize requests.

Based on a patch from Vadim Vygonets.
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.c b/client.c
index 2a5bede..bb8f8dc 100644
--- a/client.c
+++ b/client.c
@@ -839,6 +839,8 @@ client_getsizehints(struct client_ctx *cc)
 	}
 	cc->hint.incw = MAX(1, cc->hint.incw);
 	cc->hint.inch = MAX(1, cc->hint.inch);
+	cc->hint.minw = MAX(1, cc->hint.minw);
+	cc->hint.minh = MAX(1, cc->hint.minh);
 
 	if (size.flags & PAspect) {
 		if (size.min_aspect.x > 0)