]> Dogcows Code - chaz/openbox/commitdiff
fix some math for frame elements
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 15:43:28 +0000 (15:43 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 15:43:28 +0000 (15:43 +0000)
openbox/frame.c

index 80d6ca1e53228c8c758ac83d975e0d24719f9b2a..a3e6fb57b6e16fcf0401982c77ccf9d4f71e298c 100644 (file)
@@ -374,7 +374,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                 XMoveResizeWindow(ob_display, self->titletop,
                                   ob_rr_theme->grip_width + self->bwidth, 0,
                                   /* width + bwidth*2 - bwidth*2 - grips*2 */
-                                  self->width + ob_rr_theme->grip_width * 2,
+                                  self->width - ob_rr_theme->grip_width * 2,
                                   self->bwidth);
                 XMoveResizeWindow(ob_display, self->titletopleft,
                                   0, 0,
@@ -443,8 +443,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                     XMoveResizeWindow(ob_display, self->topresize,
                                       ob_rr_theme->grip_width + self->bwidth,
                                       0,
-                                      self->width - (ob_rr_theme->grip_width +
-                                                     self->bwidth) * 2,
+                                      self->width - ob_rr_theme->grip_width *2,
                                       ob_rr_theme->paddingy + 1);
 
                     XMoveWindow(ob_display, self->tltresize, 0, 0);
This page took 0.025059 seconds and 4 git commands to generate.