summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-18 16:31:16 +0000
committerDana Jansens <danakj@orodu.net>2002-12-18 16:31:16 +0000
commit38f8155bf50af2a2bf13e8767236dae924abb157 (patch)
tree11bbd40578f9d4505108c264ee935ce44d291d07 /src/client.cc
parent732bfd191dbf1f5cf3473a794f9a736dcba6117e (diff)
can resize now too. compress motion events.
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 91467250..8a6c1b11 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -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()) {