From: Dana Jansens Date: Tue, 22 May 2007 17:55:46 +0000 (+0000) Subject: fix frame rendering to match layout fixes X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8262e1ba669cb8959734892d2657653766f5cc7e;p=chaz%2Fopenbox fix frame rendering to match layout fixes --- diff --git a/openbox/frame.c b/openbox/frame.c index d5d9b122..96e93ba0 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -1249,6 +1249,10 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y) return self->rightmost; } } + + /* there is no resizing maximized windows so make them the titlebar + context */ + return OB_FRAME_CONTEXT_TITLEBAR; } if (win == self->window) return OB_FRAME_CONTEXT_FRAME; diff --git a/openbox/framerender.c b/openbox/framerender.c index 5fdc8a95..d841267e 100644 --- a/openbox/framerender.c +++ b/openbox/framerender.c @@ -217,7 +217,7 @@ void framerender_frame(ObFrame *self) ob_rr_theme->a_clear->surface.parentx = ob_rr_theme->grip_width + self->bwidth; RrPaint(ob_rr_theme->a_clear, self->topresize, - self->width - (ob_rr_theme->grip_width + self->bwidth) * 2, + self->width - ob_rr_theme->grip_width * 2, ob_rr_theme->paddingy + 1); ob_rr_theme->a_clear->surface.parentx = 0;