diff --git a/shared/cairo-util.h b/shared/cairo-util.h index e8e4d2f4..4573d54a 100644 --- a/shared/cairo-util.h +++ b/shared/cairo-util.h @@ -167,6 +167,10 @@ frame_width(struct frame *frame); int32_t frame_height(struct frame *frame); +void +frame_border_sizes(struct frame *frame, int32_t *top, int32_t *bottom, + int32_t *left, int32_t *right); + void frame_decoration_sizes(struct frame *frame, int32_t *top, int32_t *bottom, int32_t *left, int32_t *right); diff --git a/shared/frame.c b/shared/frame.c index cf58d66b..6599e96b 100644 --- a/shared/frame.c +++ b/shared/frame.c @@ -493,8 +493,8 @@ frame_resize(struct frame *frame, int32_t width, int32_t height) } void -frame_decoration_sizes(struct frame *frame, int32_t *top, int32_t *bottom, - int32_t *left, int32_t *right) +frame_border_sizes(struct frame *frame, int32_t *top, int32_t *bottom, + int32_t *left, int32_t *right) { struct theme *t = frame->theme; @@ -508,6 +508,14 @@ frame_decoration_sizes(struct frame *frame, int32_t *top, int32_t *bottom, *bottom = t->width; *right = t->width; *left = t->width; +} +void +frame_decoration_sizes(struct frame *frame, int32_t *top, int32_t *bottom, + int32_t *left, int32_t *right) +{ + struct theme *t = frame->theme; + + frame_border_sizes(frame, top, bottom, left, right); if (frame->flags & FRAME_FLAG_MAXIMIZED) return;