aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r--src/WinClient.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc
index 83637e2..fb9fec6 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -508,6 +508,11 @@ void WinClient::updateWMNormalHints() {
508 } else 508 } else
509 width_inc = height_inc = 1; 509 width_inc = height_inc = 1;
510 510
511 if (width_inc == 0)
512 width_inc = 1;
513 if (height_inc == 0)
514 height_inc = 1;
515
511 if (sizehint.flags & PAspect) { 516 if (sizehint.flags & PAspect) {
512 min_aspect_x = sizehint.min_aspect.x; 517 min_aspect_x = sizehint.min_aspect.x;
513 min_aspect_y = sizehint.min_aspect.y; 518 min_aspect_y = sizehint.min_aspect.y;