diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-29 12:23:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-29 12:23:52 +0000 |
| commit | ac72dafab4e3223fb522c0c17fd80f950d91a0c9 (patch) | |
| tree | 0446467852f24ec17b70b00c7c8dfc3111f43a37 /openbox | |
| parent | 292cb8b42e763634728d7e25d6987fcb5cbeb1aa (diff) | |
fix clients with static gravity
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/frame.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index 124ffc05..aef445ae 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -716,10 +716,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->size.left, self->size.top, self->client->area.width, self->client->area.height); - - /* when the client has StaticGravity, it likes to move around. */ - XMoveWindow(ob_display, self->client->window, - self->size.left, self->size.top); } } @@ -733,6 +729,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->size.top + self->size.bottom)); if ((moved || resized) && !fake) { + /* when the client has StaticGravity, it likes to move around. */ + XMoveWindow(ob_display, self->client->window, + self->size.left, self->size.top); + /* find the new coordinates, done after setting the frame.size, for frame_client_gravity. */ self->area.x = self->client->area.x; |
