aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2015-11-12 18:33:30 +0000
committerokan2015-11-12 18:33:30 +0000
commitfbe1f956e5e6aadb5e7dfb2e6dd760d444ea2fe1 (patch)
tree63138e65f5bc80b90ba21fc8c013c8e867a2757b /client.c
parent1cebeb1917e2f144081c3dea62073ffe65a6e5d8 (diff)
downloadcwm-fbe1f956e5e6aadb5e7dfb2e6dd760d444ea2fe1.tar.gz
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 '')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index ec46e39..0f70675 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.213 2015/11/11 14:22:01 okan Exp $
+ * $OpenBSD: client.c,v 1.214 2015/11/12 18:33:30 okan Exp $
*/
#include <sys/types.h>
@@ -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)