fix some math for frame elements

This commit is contained in:
Dana Jansens 2007-05-22 15:43:28 +00:00
parent 0fe1e8f4d7
commit c7e813580f

View file

@ -374,7 +374,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
XMoveResizeWindow(ob_display, self->titletop, XMoveResizeWindow(ob_display, self->titletop,
ob_rr_theme->grip_width + self->bwidth, 0, ob_rr_theme->grip_width + self->bwidth, 0,
/* width + bwidth*2 - bwidth*2 - grips*2 */ /* 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); self->bwidth);
XMoveResizeWindow(ob_display, self->titletopleft, XMoveResizeWindow(ob_display, self->titletopleft,
0, 0, 0, 0,
@ -443,8 +443,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
XMoveResizeWindow(ob_display, self->topresize, XMoveResizeWindow(ob_display, self->topresize,
ob_rr_theme->grip_width + self->bwidth, ob_rr_theme->grip_width + self->bwidth,
0, 0,
self->width - (ob_rr_theme->grip_width + self->width - ob_rr_theme->grip_width *2,
self->bwidth) * 2,
ob_rr_theme->paddingy + 1); ob_rr_theme->paddingy + 1);
XMoveWindow(ob_display, self->tltresize, 0, 0); XMoveWindow(ob_display, self->tltresize, 0, 0);