]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
use a solid color for the default background
[chaz/openbox] / src / client.cc
index e2c2dcb4f1dc7e9be172739ea24454615521e0c4..6f18445d4020cdd3864933d862ea9f4d14094456 100644 (file)
@@ -1,8 +1,6 @@
 // -*- 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"
@@ -1151,10 +1149,10 @@ void Client::internal_resize(Corner anchor, int w, int h,
     // 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)
This page took 0.025815 seconds and 4 git commands to generate.