summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-05-24 21:39:23 +0000
committerMikael Magnusson <mikachu@comhem.se>2007-05-24 21:39:23 +0000
commit37aaf4c1e44c205ccbe9ddb7f7633afdcf57fa0f (patch)
treec161000a6c6616db04f93ad33cfac48e24ac990e /openbox/frame.c
parentf9cf8fcea8af71268fdf3e063a96f2e3d25226d8 (diff)
merge r6815 from 3.4-working (!) 'fix positioning of tlt, top and trt resize elements. thanks mulberry'
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 16910265..37e39e2e 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -446,19 +446,17 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
if (self->decorations & OB_FRAME_DECOR_GRIPS) {
XMoveResizeWindow(ob_display, self->topresize,
- ob_rr_theme->grip_width + self->bwidth,
+ ob_rr_theme->grip_width,
0,
self->width - ob_rr_theme->grip_width *2,
ob_rr_theme->paddingy + 1);
- XMoveWindow(ob_display, self->tltresize, self->bwidth, 0);
- XMoveWindow(ob_display, self->tllresize, self->bwidth, 0);
+ XMoveWindow(ob_display, self->tltresize, 0, 0);
+ XMoveWindow(ob_display, self->tllresize, 0, 0);
XMoveWindow(ob_display, self->trtresize,
- self->bwidth + self->width -
- ob_rr_theme->grip_width, 0);
+ self->width - ob_rr_theme->grip_width, 0);
XMoveWindow(ob_display, self->trrresize,
- self->bwidth + self->width -
- ob_rr_theme->paddingx - 1, 0);
+ self->width - ob_rr_theme->paddingx - 1, 0);
XMapWindow(ob_display, self->topresize);
XMapWindow(ob_display, self->tltresize);