// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
+#include "config.h"
#include "client.hh"
#include "frame.hh"
// and aspect ratios
// smaller than min size or bigger than max size?
+ if (w > _max_size.width()) w = _max_size.width();
if (w < _min_size.width()) w = _min_size.width();
- else if (w > _max_size.width()) w = _max_size.width();
+ if (h > _max_size.height()) h = _max_size.height();
if (h < _min_size.height()) h = _min_size.height();
- else if (h > _max_size.height()) h = _max_size.height();
// adjust the height ot match the width for the aspect ratios
if (_min_ratio)