summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-30 07:09:36 +0000
committerDana Jansens <danakj@orodu.net>2003-07-30 07:09:36 +0000
commit006de2abaac594b7bbc048d9c8819311993c0203 (patch)
tree04857e0486f389c719c144617291bbe64a7d83e5 /openbox
parent1aa0bc66eb45ba466d1d071d0e6c13631331e091 (diff)
the size can be 0 when there is a base size
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c8d87ab4..99757916 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1786,8 +1786,8 @@ void client_configure_full(ObClient *self, ObCorner anchor,
h /= self->size_inc.height;
/* you cannot resize to nothing */
- if (w < 1) w = 1;
- if (h < 1) h = 1;
+ if (basew + w < 1) w = 1 - basew;
+ if (baseh + h < 1) h = 1 - baseh;
/* store the logical size */
SIZE_SET(self->logical_size, w, h);
@@ -1849,7 +1849,7 @@ void client_configure_full(ObClient *self, ObCorner anchor,
if (moved || resized)
frame_adjust_area(self->frame, moved, resized);
- if (force_reply || (!resized && ((!user && moved) || (user && final))))
+ if (!resized && (force_reply || ((!user && moved) || (user && final))))
{
XEvent event;
event.type = ConfigureNotify;
@@ -1862,7 +1862,11 @@ void client_configure_full(ObClient *self, ObCorner anchor,
self->border_width;
event.xconfigure.y = self->frame->area.y + self->frame->size.top -
self->border_width;
-
+ g_message("x %d cx %d y %d cy %d",
+ self->area.x,
+ event.xconfigure.x,
+ self->area.y,
+ event.xconfigure.y);
event.xconfigure.width = w;
event.xconfigure.height = h;
event.xconfigure.border_width = 0;