summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-22 15:43:28 +0000
committerDana Jansens <danakj@orodu.net>2007-05-22 15:43:28 +0000
commitc7e813580f40e7262cad2afbf637a21d73b85460 (patch)
tree26f61ca565fbe26ccae35f88b3cb79cd35b3b7ef
parent0fe1e8f4d7c255860fb458be7528dc803dc5948a (diff)
fix some math for frame elements
-rw-r--r--openbox/frame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 80d6ca1e..a3e6fb57 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -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);