From 30bdb2c035a66cd12598f9c418db2abbc8983bed Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 27 May 2003 01:31:54 +0000 Subject: [PATCH] fixed right decor anchors properly --- openbox/frame.c | 7 +++---- openbox/frame.h | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.34.1