xdg-shell: Add set_margin request

This is used to figure out the size of "invisible" decorations, which we'll
use to better know the visible extents of the surface, which we can use for
constraining, titlebars, and more.
This commit is contained in:
Jasper St. Pierre
2014-02-01 18:36:41 -05:00
committed by Kristian Høgsberg
parent 2097fe12d4
commit 7407345446
5 changed files with 72 additions and 0 deletions
+3
View File
@@ -165,6 +165,9 @@ void
frame_opaque_rect(struct frame *frame, int32_t *x, int32_t *y,
int32_t *width, int32_t *height);
int
frame_get_shadow_margin(struct frame *frame);
uint32_t
frame_status(struct frame *frame);
+8
View File
@@ -578,6 +578,14 @@ frame_opaque_rect(struct frame *frame, int32_t *x, int32_t *y,
*height = frame->height - frame->opaque_margin * 2;
}
int
frame_get_shadow_margin(struct frame *frame)
{
frame_refresh_geometry(frame);
return frame->shadow_margin;
}
uint32_t
frame_status(struct frame *frame)
{