summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-25 08:49:48 +0000
committerDana Jansens <danakj@orodu.net>2003-08-25 08:49:48 +0000
commit5186d04c613056c44490bd3f6766fd969e83305a (patch)
tree9aeffc747a22a4ca090d260c4bcf5ee86755ab1b /openbox/frame.c
parent584656d96a23ee5f0717b75c165f124c6aafd13d (diff)
better handling of maximizing, wrt changing decorations on the windows, and showing the correct decor for the max state especially for windows which dont change size (Xnest) when maximized cuz they are at their maximum size already
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 633b7cef..6c3b418a 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -213,6 +213,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
{
if (resized) {
self->decorations = self->client->decorations;
+ self->max_horz = self->client->max_horz;
if (self->decorations & OB_FRAME_DECOR_BORDER) {
self->bwidth = ob_rr_theme->bwidth;
@@ -222,11 +223,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
}
self->rbwidth = self->bwidth;
- if (self->client->max_vert && self->client->max_horz)
- self->client->decorations =
- self->decorations &= ~OB_FRAME_DECOR_HANDLE;
-
- if (self->client->max_horz)
+ if (self->max_horz)
self->bwidth = self->cbwidth_x = 0;
STRUT_SET(self->innersize,
@@ -235,7 +232,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
self->cbwidth_x,
self->cbwidth_y);
self->width = self->client->area.width + self->cbwidth_x * 2 -
- (self->client->max_horz ? self->rbwidth * 2 : 0);
+ (self->max_horz ? self->rbwidth * 2 : 0);
self->width = MAX(self->width, 1); /* no lower than 1 */
/* set border widths */