projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eed9d6
)
dont allow resizing < 1 (based on increments)
author
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 04:10:12 +0000
(
04:10
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 04:10:12 +0000
(
04:10
+0000)
src/client.cc
patch
|
blob
|
history
diff --git
a/src/client.cc
b/src/client.cc
index
df51905
..
a9fbdeb
100644
(file)
--- a/
src/client.cc
+++ b/
src/client.cc
@@
-968,6
+968,10
@@
void Client::resize(Corner anchor, int w, int h, int x, int y)
w /= _size_inc.x();
h /= _size_inc.y();
+ // you cannot resize to nothing
+ if (w < 1) w = 1;
+ if (h < 1) h = 1;
+
// store the logical size
_logical_size.setPoint(w, h);