From: Derek Foreman Date: Tue, 27 May 2003 01:31:54 +0000 (+0000) Subject: fixed right decor anchors properly X-Git-Tag: gl2~93 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=30bdb2c035a66cd12598f9c418db2abbc8983bed;p=dana%2Fopenbox.git fixed right decor anchors properly --- diff --git a/openbox/frame.c b/openbox/frame.c index ba550efa..e643c3e0 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -563,7 +563,7 @@ printf("frame extends by %d, %d, %d, %d\n", le, te, le, be); case Decor_TopRight: x = self->size.left + cr->width - + dec->position.x + dec->position.width; + + dec->position.x; y = self->size.top - dec->position.y - dec->position.height; XMoveResizeWindow(ob_display, dec->window, x, y, dec->position.width, @@ -581,8 +581,7 @@ printf("frame extends by %d, %d, %d, %d\n", le, te, le, be); break; case Decor_Right: - x = self->size.left + cr->width + dec->position.x - + dec->position.width; + x = self->size.left + cr->width + dec->position.x; y = cr->height/2 + self->size.top - dec->position.y - dec->position.height/2; XMoveResizeWindow(ob_display, dec->window, x, y, @@ -611,7 +610,7 @@ printf("frame extends by %d, %d, %d, %d\n", le, te, le, be); case Decor_BottomRight: x = self->size.left + cr->width - + dec->position.x + dec->position.width; + + dec->position.x; y = self->size.top + cr->height - dec->position.y - dec->position.height; XMoveResizeWindow(ob_display, dec->window, x, y, diff --git a/openbox/frame.h b/openbox/frame.h index 5a97ab53..2a25f5e1 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -51,6 +51,7 @@ typedef struct FrameDecor { Rect position; Decoration type; struct Frame *frame; +/* struct RrSurface *surface; SOOOOON!*/ } FrameDecor; typedef struct Frame {