]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
better paths
[chaz/openbox] / src / client.cc
index 914672503178a16763503c5b1985dc6668fb3a89..8a6c1b11df7fd328c11f8458335fb1e3cb42e97b 100644 (file)
@@ -778,6 +778,11 @@ void OBClient::resize(Corner anchor, int w, int h)
   w -= _base_size.x(); 
   h -= _base_size.y();
 
+  // for interactive resizing. have to move half an increment in each
+  // direction.
+  w += _size_inc.x() / 2;
+  h += _size_inc.y() / 2;
+
   // is the window resizable? if it is not, then don't check its sizes, the
   // client can do what it wants and the user can't change it anyhow
   if (_min_size.x() <= _max_size.x() && _min_size.y() <= _max_size.y()) {
This page took 0.019838 seconds and 4 git commands to generate.