summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-04-19 22:15:20 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-04-19 22:15:20 +0900
commit2991da5687fa2828d551fd7b2388d9648a19ecc2 (patch)
tree56aff659352fa256c7a8f78c21835e213978d0c9 /shared
parentef9195febc0e67a116b2f1d093cbcbeb629c92b4 (diff)
downloadweston-2991da5687fa2828d551fd7b2388d9648a19ecc2.tar.gz
1.4.91
Change-Id: Ibfed4937c6083937d2b29154e0485c1caf8365a1
Diffstat (limited to 'shared')
-rw-r--r--shared/cairo-util.h3
-rw-r--r--shared/frame.c8
-rw-r--r--shared/os-compatibility.h4
3 files changed, 13 insertions, 2 deletions
diff --git a/shared/cairo-util.h b/shared/cairo-util.h
index 7bcbc296..4493b0d9 100644
--- a/shared/cairo-util.h
+++ b/shared/cairo-util.h
@@ -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);
diff --git a/shared/frame.c b/shared/frame.c
index a039d157..35e6b65e 100644
--- a/shared/frame.c
+++ b/shared/frame.c
@@ -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)
{
diff --git a/shared/os-compatibility.h b/shared/os-compatibility.h
index c1edcfbd..172bb7ed 100644
--- a/shared/os-compatibility.h
+++ b/shared/os-compatibility.h
@@ -23,9 +23,9 @@
#ifndef OS_COMPATIBILITY_H
#define OS_COMPATIBILITY_H
-#include <sys/types.h>
+#include "config.h"
-#include "../config.h"
+#include <sys/types.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>