summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-16 19:14:53 +0000
committerDana Jansens <danakj@orodu.net>2007-03-16 19:14:53 +0000
commit73dac2b9b951e978011163f65281a12afd1e48ae (patch)
tree8babc8b4197a84ed422cc2c06eab577be5b70ce6
parentf658ec961e198e756934f9191e78567ccbde183f (diff)
fix for bug introduced in revision 5643. logical size is supposed to be updated only when the window is resized.
-rw-r--r--openbox/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index b49d3ff8..92489827 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2389,8 +2389,9 @@ void client_configure_full(ObClient *self, ObCorner anchor,
client_try_configure(self, anchor, &x, &y, &w, &h,
&logicalw, &logicalh, user);
- /* set the logical size */
- SIZE_SET(self->logical_size, logicalw, logicalh);
+ /* set the logical size if things changed */
+ if (!(w == self->area.width && h == self->area.height))
+ SIZE_SET(self->logical_size, logicalw, logicalh);
/* figure out if we moved or resized or what */
moved = x != self->area.x || y != self->area.y;