aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-graphical
diff options
context:
space:
mode:
authorhupeng <kohou.hu@gmail.com>2019-02-13 10:35:09 +0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-02-18 11:06:26 +0000
commit55485cd9df453f196661fb95a3c6dcef54017297 (patch)
tree0d33ce3f0b411c61d9014016e16c17c5c763a29a /meta-agl-profile-graphical
parent75e9b3104628d5bbf337c279c33bc3b13d47c43f (diff)
weston-ivi-extension: add focus notification patch
Change-Id: Id9e5454ef0e006bff81f3392028b320db46785c4 Signed-off-by: hupeng <kohou.hu@gmail.com>
Diffstat (limited to 'meta-agl-profile-graphical')
-rw-r--r--meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension/0004-ivi-ilmcontrol-added-focus-notification.patch28
-rw-r--r--meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension_2.0.2.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension/0004-ivi-ilmcontrol-added-focus-notification.patch b/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension/0004-ivi-ilmcontrol-added-focus-notification.patch
new file mode 100644
index 000000000..a665c060f
--- /dev/null
+++ b/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension/0004-ivi-ilmcontrol-added-focus-notification.patch
@@ -0,0 +1,28 @@
+diff --git a/ivi-layermanagement-api/ilmCommon/include/ilm_types.h b/ivi-layermanagement-api/ilmCommon/include/ilm_types.h
+index a88f2b0..12a2017 100644
+--- a/ivi-layermanagement-api/ilmCommon/include/ilm_types.h
++++ b/ivi-layermanagement-api/ilmCommon/include/ilm_types.h
+@@ -245,6 +245,7 @@ typedef enum
+ ILM_NOTIFICATION_CONTENT_AVAILABLE = ILM_BIT(6),
+ ILM_NOTIFICATION_CONTENT_REMOVED = ILM_BIT(7),
+ ILM_NOTIFICATION_CONFIGURED = ILM_BIT(8),
++ ILM_NOTIFICATION_FOCUS = ILM_BIT(9),
+ ILM_NOTIFICATION_ALL = 0xffff
+ } t_ilm_notification_mask;
+
+diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+index 9b4762b..5104459 100644
+--- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
++++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+@@ -779,6 +779,12 @@ input_listener_input_focus(void *data,
+ surf_ctx->prop.focus |= device;
+ else
+ surf_ctx->prop.focus &= ~device;
++
++ if (surf_ctx->notification != NULL) {
++ surf_ctx->notification(surf_ctx->id_surface,
++ &surf_ctx->prop,
++ ILM_NOTIFICATION_FOCUS);
++ }
+ }
+ } \ No newline at end of file
diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension_2.0.2.bb b/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension_2.0.2.bb
index 585c9adb6..de673a272 100644
--- a/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension_2.0.2.bb
+++ b/meta-agl-profile-graphical/recipes-graphics/wayland/wayland-ivi-extension_2.0.2.bb
@@ -11,6 +11,7 @@ SRC_URI = "git://github.com/GENIVI/${BPN}.git;branch=2.0;protocol=http \
file://0002-ivi-id-agent-added-ivi-id-agent.patch \
file://0003-ivi-controller-load-id-agent-module.patch \
file://0002-add-LayerManagerControl-error-status.patch \
+ file://0004-ivi-ilmcontrol-added-focus-notification.patch \
"
SRC_URI_append_wandboard = " file://wandboard_fix_build.patch"