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.
This commit is contained in:
okan
2015-11-12 18:33:30 +00:00
parent 9a48836ceb
commit 4aca2b8764
2 changed files with 6 additions and 4 deletions

View File

@@ -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)