summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-22 05:54:28 +0000
committerDana Jansens <danakj@orodu.net>2003-03-22 05:54:28 +0000
commit2487e74d40448c110c6486fa5e2256a686d2c837 (patch)
tree983a4cd9f514cc1c817295a51dc83949514a2e01
parent0a9ef7591fdfe3679ac823a42accf97dc1b74d68 (diff)
move and resize the plate window at the same time
-rw-r--r--engines/openbox/openbox.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/openbox/openbox.c b/engines/openbox/openbox.c
index 3115df74..0123f474 100644
--- a/engines/openbox/openbox.c
+++ b/engines/openbox/openbox.c
@@ -475,14 +475,14 @@ void frame_adjust_area(ObFrame *self)
self->innersize.top + self->innersize.bottom +
self->frame.client->area.height));
- /* do this in two steps because clients whose gravity is set to
- 'Static' don't end up getting moved at all with an XMoveResizeWindow */
- XMoveWindow(ob_display, self->frame.plate,
- self->innersize.left - self->cbwidth,
- self->innersize.top - self->cbwidth);
- XResizeWindow(ob_display, self->frame.plate,
- self->frame.client->area.width,
- self->frame.client->area.height);
+ /* move and resize the plate */
+ XMoveResizeWindow(ob_display, self->frame.plate,
+ self->innersize.left - self->cbwidth,
+ self->innersize.top - self->cbwidth,
+ self->frame.client->area.width,
+ self->frame.client->area.height);
+ /* when the client has StaticGravity, it likes to move around. */
+ XMoveWindow(ob_display, self->frame.client->window, 0, 0);
STRUT_SET(self->frame.size,
self->innersize.left + self->bwidth,
@@ -497,7 +497,7 @@ void frame_adjust_area(ObFrame *self)
self->frame.size.top + self->frame.size.bottom);
render(self);
-
+
frame_adjust_shape(self);
}