fix frame rendering to match layout fixes

This commit is contained in:
Dana Jansens 2007-05-22 17:55:46 +00:00
parent d0c1a24be9
commit 8262e1ba66
2 changed files with 5 additions and 1 deletions

View file

@ -1249,6 +1249,10 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y)
return self->rightmost; 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; if (win == self->window) return OB_FRAME_CONTEXT_FRAME;

View file

@ -217,7 +217,7 @@ void framerender_frame(ObFrame *self)
ob_rr_theme->a_clear->surface.parentx = ob_rr_theme->grip_width + ob_rr_theme->a_clear->surface.parentx = ob_rr_theme->grip_width +
self->bwidth; self->bwidth;
RrPaint(ob_rr_theme->a_clear, self->topresize, 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->paddingy + 1);
ob_rr_theme->a_clear->surface.parentx = 0; ob_rr_theme->a_clear->surface.parentx = 0;