]> Dogcows Code - chaz/openbox/commitdiff
use the new window.title.separator.width
authorDana Jansens <danakj@orodu.net>
Sat, 2 Jun 2007 21:02:43 +0000 (21:02 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 2 Jun 2007 21:02:43 +0000 (21:02 +0000)
openbox/frame.c
openbox/frame.h

index fef8b833dae752aa73b8081bf28187f94e8ef57e..6ca718c8e3f5a297d2f0d1ffe3aa153ba2108214 100644 (file)
@@ -297,8 +297,7 @@ void frame_adjust_shape(ObFrame *self)
             xrect[0].x = 0;
             xrect[0].y = 0;
             xrect[0].width = self->area.width;
-            xrect[0].height = ob_rr_theme->title_height +
-                self->bwidth + self->rbwidth;
+            xrect[0].height = self->size.top;
             ++num;
         }
 
@@ -344,7 +343,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
             self->bwidth = self->cbwidth_l = self->cbwidth_t =
                 self->cbwidth_r = self->cbwidth_b = 0;
         }
-        self->rbwidth = self->bwidth;
 
         if (self->max_horz) {
             self->cbwidth_l = self->cbwidth_r = 0;
@@ -367,7 +365,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                   self->cbwidth_b + (!self->max_horz || !self->max_vert ? self->bwidth : 0));
 
         if (self->decorations & OB_FRAME_DECOR_TITLEBAR)
-            self->size.top += ob_rr_theme->title_height + self->rbwidth;
+            self->size.top += ob_rr_theme->title_height + ob_rr_theme->tswidth;
         if (self->decorations & OB_FRAME_DECOR_HANDLE &&
             ob_rr_theme->handle_height > 0)
         {
@@ -471,13 +469,13 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                 XMapWindow(ob_display, self->titletopright);
 
                 if (self->decorations & OB_FRAME_DECOR_TITLEBAR &&
-                    self->rbwidth)
+                    ob_rr_theme->tswidth)
                 {
                     XMoveResizeWindow(ob_display, self->titlebottom,
                                       self->bwidth,
                                       ob_rr_theme->title_height + self->bwidth,
                                       self->width,
-                                      self->rbwidth);
+                                      ob_rr_theme->tswidth);
 
                     XMapWindow(ob_display, self->titlebottom);
                 } else
index 0691821c7dc54b3b6787d876b893671dbe3075ea..eb868dcbbbd83af8a956a23dd7d568921968a69f 100644 (file)
@@ -161,7 +161,6 @@ struct _ObFrame
     gint      max_x;         /* x-position of the window maximize button */
     gint      close_x;       /* x-position of the window close button */
     gint      bwidth;        /* border width */
-    gint      rbwidth;       /* border width between the title and client */
     gint      cbwidth_l;     /* client border width */
     gint      cbwidth_t;     /* client border width */
     gint      cbwidth_r;     /* client border width */
This page took 0.0258 seconds and 4 git commands to generate.