]> Dogcows Code - chaz/openbox/commitdiff
proper height for shaded windows
authorDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 19:55:20 +0000 (19:55 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 19:55:20 +0000 (19:55 +0000)
engines/openbox/openbox.c

index a661931fff1fe9e9eb98da9d9d611cf9d25c3e81..6f715480abf6c7abee27d1904ecbf5c499646756 100644 (file)
@@ -408,6 +408,7 @@ void frame_adjust_shape(ObFrame *self)
 
 void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized)
 {
+    g_message("adjust_area: %d %d", moved, resized);
     if (resized) {
         if (self->frame.client->decorations & Decor_Border) {
             self->bwidth = s_bwidth;
@@ -511,7 +512,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized)
     RECT_SET_SIZE(self->frame.area,
                  self->frame.client->area.width +
                  self->frame.size.left + self->frame.size.right,
-                 (self->frame.client->shaded ? TITLE_HEIGHT :
+                 (self->frame.client->shaded ? TITLE_HEIGHT + self->bwidth*2:
                    self->frame.client->area.height +
                    self->frame.size.top + self->frame.size.bottom));
 
This page took 0.028764 seconds and 4 git commands to generate.