diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-28 03:18:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-28 03:18:08 +0000 |
| commit | 38c776bd4e849312d1c90498e6809abc541cec24 (patch) | |
| tree | 030389bbee5103d202c5e8859703b33013900303 /openbox | |
| parent | 91fed618842ca9594b05a726bdb7358db6804696 (diff) | |
use the struts to size the window correctly for maximized windows
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c index 2e686243..6c1a6add 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1326,13 +1326,11 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, /* set the size and position if maximized */ if (self->max_horz) { x = screen_area(self->desktop)->x - self->frame->size.left; - w = screen_area(self->desktop)->x + - screen_area(self->desktop)->width; + w = screen_area(self->desktop)->width; } if (self->max_vert) { y = screen_area(self->desktop)->y; - h = screen_area(self->desktop)->y + - screen_area(self->desktop)->height - + h = screen_area(self->desktop)->height - self->frame->size.top - self->frame->size.bottom; } } |
