EFL_INTERNAL_DEPEND_PKG([ECORE_WAYLAND], [eina])
EFL_DEPEND_PKG([ECORE_WAYLAND], [WAYLAND],
- [wayland-client >= 1.8.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.5.0 uuid xdg-shell-client text-client tizen-extension-client wayland-tbm-client libtdm-client])
+ [wayland-client >= 1.8.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.5.0 uuid xdg-shell-client text-client tizen-extension-client tizen-launch-client wayland-tbm-client libtdm-client])
EFL_EVAL_PKGS([ECORE_WAYLAND])
EFL_INTERNAL_DEPEND_PKG([ECORE_WL2], [eina])
EFL_DEPEND_PKG([ECORE_WL2], [WAYLAND],
- [wayland-server >= 1.11.0 wayland-client >= 1.11.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.6.0] tizen-extension-client wayland-tbm-client libtdm-client)
+ [wayland-server >= 1.11.0 wayland-client >= 1.11.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.6.0] tizen-extension-client tizen-launch-client wayland-tbm-client libtdm-client)
EFL_EVAL_PKGS([ECORE_WL2])
BuildRequires: pkgconfig(wayland-tbm-client)
BuildRequires: pkgconfig(wayland-tbm-server)
BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(tizen-launch-client)
BuildRequires: pkgconfig(tizen-remote-surface-client)
BuildRequires: pkgconfig(wayland-egl-tizen)
BuildRequires: wayland-protocols
BuildRequires: pkgconfig(wayland-tbm-client)
BuildRequires: pkgconfig(wayland-tbm-server)
BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(tizen-launch-client)
BuildRequires: pkgconfig(tizen-remote-surface-client)
BuildRequires: pkgconfig(wayland-egl-tizen)
BuildRequires: wayland-protocols
BuildRequires: pkgconfig(wayland-tbm-client)
BuildRequires: pkgconfig(wayland-tbm-server)
BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(tizen-launch-client)
BuildRequires: pkgconfig(tizen-remote-surface-client)
BuildRequires: wayland-protocols
Requires: libwayland-extension-client
BuildRequires: pkgconfig(wayland-tbm-client)
BuildRequires: pkgconfig(wayland-tbm-server)
BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(tizen-launch-client)
BuildRequires: pkgconfig(tizen-remote-surface-client)
BuildRequires: pkgconfig(wayland-egl-tizen)
BuildRequires: wayland-protocols
// End of TIZEN_ONLY(20171129)
static void _ecore_wl2_display_sync_add(Ecore_Wl2_Display *ewd);
+// TIZEN_ONLY(20190430): support client appinfo
+static pid_t _base_resolution_pid = 0;
+static uint32_t _base_resolution_w = 0;
+static uint32_t _base_resolution_h = 0;
+//
+
void
_display_event_free(void *d, void *event)
{
_tizen_policy_cb_conformant_region,
};
+// TIZEN_ONLY(20190430): support client appinfo
+static void
+_tizen_appinfo_cb_base_output_resolution_done(void *data, struct tizen_launch_appinfo *tz_appinfo EINA_UNUSED, uint32_t pid, uint32_t width, uint32_t height)
+{
+ Ecore_Wl2_Display *ewd = data;
+
+ if (!ewd) return;
+ if (_base_resolution_pid != pid)
+ {
+ ERR("tzappinfo_cb_size_get_done pid is different. pid: %d / width: %d / height: %d appinfo_pid: %d", pid, width, height, _base_resolution_pid);
+ return;
+ }
+
+ if (_base_resolution_w != width) _base_resolution_w = width;
+ if (_base_resolution_h != height) _base_resolution_h = height;
+}
+
+static const struct tizen_launch_appinfo_listener _tizen_launch_appinfo_listener =
+{
+ _tizen_appinfo_cb_base_output_resolution_done,
+};
+//
+
static void
_tizen_policy_ext_cb_active_angle(void *data, struct tizen_policy_ext *tizen_policy_ext EINA_UNUSED, uint32_t angle)
{
tizen_screen_rotation_add_listener(ewd->wl.tz_moveresize, &_tizen_move_resize_listener, ewd->wl.display);
}
//
+// TIZEN_ONLY(20190430): support client appinfo
+ else if (!strcmp(interface, "tizen_launch_appinfo"))
+ {
+ ewd->wl.tz_appinfo =
+ wl_registry_bind(registry, id, &tizen_launch_appinfo_interface, 1);
+ if (ewd->wl.tz_appinfo)
+ tizen_launch_appinfo_add_listener(ewd->wl.tz_appinfo, &_tizen_launch_appinfo_listener, ewd->wl.display);
+ }
+//
//
event:
#include <tbm_surface_queue.h>
//
+// TIZEN_ONLY(20190430) : support client appinfo
+#include <wayland-extension/tizen-launch-client-protocol.h>
+//
+
extern int _ecore_wl2_log_dom;
extern Eina_Bool no_session_recovery;
//TIZEN_ONLY(20180810): support client demand move resize
struct tizen_move_resize *tz_moveresize;
//
+ // TIZEN_ONLY(20190430): support client appinfo
+ struct tizen_launch_appinfo *tz_appinfo;
+ //
int compositor_version;
} wl;
ecore_wl2_deps += [
dependency('wayland-cursor'),
dependency('tizen-extension-client'),
+ dependency('tizen-launch-client'),
dependency('wayland-tbm-client'),
dependency('libtdm-client'),
]