[PATCH weston v3 07/15] ivi-shell: linked libweston-desktop and added structs

Michael Teyfel mteyfel at de.adit-jv.com
Tue Apr 10 09:03:15 UTC 2018


Signed-off-by: Michael Teyfel <mteyfel at de.adit-jv.com>
---
 Makefile.am                    | 1 +
 ivi-shell/ivi-layout-private.h | 2 ++
 ivi-shell/ivi-shell.c          | 4 +++-
 ivi-shell/ivi-shell.h          | 2 ++
 4 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 69ca6cb..75bd02c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1003,6 +1003,7 @@ ivi_shell_la_LDFLAGS = -module -avoid-version
 ivi_shell_la_LIBADD =				\
 	libshared.la				\
 	libweston- at LIBWESTON_MAJOR@.la		\
+	libweston-desktop- at LIBWESTON_MAJOR@.la  \
 	$(COMPOSITOR_LIBS)
 ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
 ivi_shell_la_SOURCES =				\
diff --git a/ivi-shell/ivi-layout-private.h b/ivi-shell/ivi-layout-private.h
index fe5be01..c054130 100644
--- a/ivi-shell/ivi-layout-private.h
+++ b/ivi-shell/ivi-layout-private.h
@@ -30,6 +30,7 @@
 
 #include "compositor.h"
 #include "ivi-layout-export.h"
+#include "libweston-desktop/libweston-desktop.h"
 
 struct ivi_layout_view {
 	struct wl_list link;	/* ivi_layout::view_list */
@@ -52,6 +53,7 @@ struct ivi_layout_surface {
 
 	struct ivi_layout *layout;
 	struct weston_surface *surface;
+	struct weston_desktop_surface *weston_desktop_surface;
 
 	struct ivi_layout_surface_properties prop;
 
diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index f34a927..173bc91 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -44,7 +44,7 @@
 
 #include "ivi-shell.h"
 #include "ivi-application-server-protocol.h"
-#include "ivi-layout-export.h"
+#include "ivi-layout-private.h"
 #include "ivi-layout-shell.h"
 #include "shared/helpers.h"
 #include "compositor/weston.h"
@@ -265,6 +265,8 @@ application_surface_create(struct wl_client *client,
 		return;
 	}
 
+	layout_surface->weston_desktop_surface = NULL;
+
 	ivisurf = zalloc(sizeof *ivisurf);
 	if (ivisurf == NULL) {
 		wl_resource_post_no_memory(resource);
diff --git a/ivi-shell/ivi-shell.h b/ivi-shell/ivi-shell.h
index e35f75f..be43085 100644
--- a/ivi-shell/ivi-shell.h
+++ b/ivi-shell/ivi-shell.h
@@ -30,6 +30,7 @@
 #include <stdint.h>
 
 #include "compositor.h"
+#include "libweston-desktop/libweston-desktop.h"
 
 struct ivi_shell
 {
@@ -37,6 +38,7 @@ struct ivi_shell
 
 	struct weston_compositor *compositor;
 
+	struct weston_desktop *desktop;
 	struct wl_list ivi_surface_list; /* struct ivi_shell_surface::link */
 
 	struct text_backend *text_backend;
-- 
2.7.4



More information about the wayland-devel mailing list