#include <stdlib.h>
#include <linux/limits.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <glib-object.h>
#include <malloc.h>
#include <glib.h>
{
appcore_base_on_create();
- _appcore_mw_context.hshow = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, __stub_show_cb, NULL);
- _appcore_mw_context.hhide = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_HIDE, __stub_hide_cb, NULL);
- _appcore_mw_context.hvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_VISIBILITY_CHANGE,
+ _appcore_mw_context.hshow = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_SHOW, __stub_show_cb, NULL);
+ _appcore_mw_context.hhide = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_HIDE, __stub_hide_cb, NULL);
+ _appcore_mw_context.hvchange = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_VISIBILITY_CHANGE,
__stub_visibility_cb, NULL);
- _appcore_mw_context.hlower = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_LOWER, __stub_lower_cb, NULL);
- _appcore_mw_context.hpvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_PRE_VISIBILITY_CHANGE,
+ _appcore_mw_context.hlower = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_LOWER, __stub_lower_cb, NULL);
+ _appcore_mw_context.hpvchange = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_PRE_VISIBILITY_CHANGE,
__stub_pre_visibility_cb, NULL);
return 0;
#include <malloc.h>
#include <stdbool.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <glib-object.h>
#include <glib.h>
#include <gio/gio.h>
EXPORT_API void appcore_multiwindow_base_window_on_hide(int type, void *event)
{
- Ecore_Wl_Event_Window_Hide *ev = event;
+ Ecore_Wl2_Event_Window_Hide *ev = event;
win_context *cxt = __find_win_context_by_wid(ev->win);
if (!cxt)
EXPORT_API void appcore_multiwindow_base_window_on_visibility(int type, void *event)
{
- Ecore_Wl_Event_Window_Visibility_Change *ev = event;
+ Ecore_Wl2_Event_Window_Visibility_Change *ev = event;
win_context *cxt = __find_win_context_by_wid(ev->win);
if (!cxt)
EXPORT_API void appcore_multiwindow_base_window_on_pre_visibility(int type, void *event)
{
- Ecore_Wl_Event_Window_Pre_Visibility_Change *ev = event;
+ Ecore_Wl2_Event_Window_Pre_Visibility_Change *ev = event;
win_context *cxt = __find_win_context_by_wid(ev->win);
if (!cxt)
return;
- if (ev->type == ECORE_WL_WINDOW_VISIBILITY_TYPE_PRE_UNOBSCURED) {
+ if (ev->type == ECORE_WL2_WINDOW_VISIBILITY_TYPE_PRE_UNOBSCURED) {
appcore_multiwindow_base_instance_resume(cxt->inst);
__remove_flush_timer();
}
}
-EXPORT_API void appcore_multiwindow_base_window_bind(appcore_multiwindow_base_instance_h h, Ecore_Wl_Window *wl_win)
+EXPORT_API void appcore_multiwindow_base_window_bind(appcore_multiwindow_base_instance_h h, Ecore_Wl2_Window *wl_win)
{
win_context *cxt;
int id;
return;
}
- id = ecore_wl_window_id_get(wl_win);
+ id = ecore_wl2_window_id_get(wl_win);
cxt = malloc(sizeof(win_context));
if (cxt == NULL) {
#include <stdlib.h>
#include <linux/limits.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <wayland-client.h>
#include <wayland-tbm-client.h>
#include <tizen-extension-client-protocol.h>
static void __raise_win(void)
{
- Ecore_Wl_Window *win;
+ Ecore_Wl2_Window *win;
unsigned int win_id;
if (!(__context.hint & APPCORE_UI_BASE_HINT_WINDOW_STACK_CONTROL))
win_id = __get_main_window();
_DBG("Raise window: %d", win_id);
- win = ecore_wl_window_find(win_id);
- ecore_wl_window_activate(win);
+ win = ecore_wl2_display_window_find(ecore_wl2_connected_display_get(NULL), win_id);
+ ecore_wl2_window_activate(win);
}
static void __pause_win(void)
{
- Ecore_Wl_Window *win;
+ Ecore_Wl2_Window *win;
GSList *wlist = g_winnode_list;
struct win_node *entry = NULL;
entry = wlist->data;
_DBG("Pause window: %d", entry->win);
- win = ecore_wl_window_find(entry->win);
- ecore_wl_window_iconified_set(win, EINA_TRUE);
+ win = ecore_wl2_display_window_find(ecore_wl2_connected_display_get(NULL), entry->win);
+ ecore_wl2_window_iconified_set(win, EINA_TRUE);
wlist = wlist->next;
}
static void __add_ecore_events(void)
{
- __context.hshow = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW,
+ __context.hshow = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_SHOW,
__stub_show_cb, NULL);
if (!__context.hshow)
_ERR("Failed to add ECORE_WL_EVENT_WINDOW_SHOW event");
- __context.hhide = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_HIDE,
+ __context.hhide = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_HIDE,
__stub_hide_cb, NULL);
if (!__context.hhide)
_ERR("Failed to add ECORE_WL_EVENT_WINDOW_HIDE event");
- __context.hvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_VISIBILITY_CHANGE,
+ __context.hvchange = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_VISIBILITY_CHANGE,
__stub_visibility_cb, NULL);
if (!__context.hvchange)
_ERR("Failed to add ECORE_WL_EVENT_WINDOW_VISIBILITY_CHANGE event");
- __context.hlower = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_LOWER,
+ __context.hlower = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_LOWER,
__stub_lower_cb, NULL);
if (!__context.hlower)
_ERR("Failed to add ECORE_WL_EVENT_WINDOW_LOWER event");
- __context.hpvchange = ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_PRE_VISIBILITY_CHANGE,
+ __context.hpvchange = ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_PRE_VISIBILITY_CHANGE,
__stub_pre_visibility_cb, NULL);
if (!__context.hpvchange)
_ERR("Failed to add ECORE_WL_EVENT_WINDOW_PRE_VISIBILITY_CHANGE event");
EXPORT_API void appcore_ui_base_window_on_show(int type, void *event)
{
- Ecore_Wl_Event_Window_Show *ev;
+ Ecore_Wl2_Event_Window_Show *ev;
ev = event;
if (ev->parent_win != 0) {
EXPORT_API void appcore_ui_base_window_on_hide(int type, void *event)
{
- Ecore_Wl_Event_Window_Hide *ev;
+ Ecore_Wl2_Event_Window_Hide *ev;
int bvisibility;
ev = event;
EXPORT_API void appcore_ui_base_window_on_lower(int type, void *event)
{
- Ecore_Wl_Event_Window_Lower *ev;
+ Ecore_Wl2_Event_Window_Lower *ev;
ev = event;
if (!ev)
return;
- _DBG("ECORE_WL_EVENT_WINDOW_LOWER window id:%u\n", ev->win);
+ _DBG("ECORE_WL2_EVENT_WINDOW_LOWER window id:%u\n", ev->win);
__group_lower();
}
EXPORT_API void appcore_ui_base_window_on_visibility(int type, void *event)
{
- Ecore_Wl_Event_Window_Visibility_Change *ev;
+ Ecore_Wl2_Event_Window_Visibility_Change *ev;
int bvisibility;
ev = event;
EXPORT_API void appcore_ui_base_window_on_pre_visibility(int type, void *event)
{
- Ecore_Wl_Event_Window_Pre_Visibility_Change *ev = event;
+ Ecore_Wl2_Event_Window_Pre_Visibility_Change *ev = event;
bool bvisibility;
- if (ev && ev->type == ECORE_WL_WINDOW_VISIBILITY_TYPE_PRE_UNOBSCURED) {
+ if (ev && ev->type == ECORE_WL2_WINDOW_VISIBILITY_TYPE_PRE_UNOBSCURED) {
__update_win((unsigned int)ev->win, 0, false);
bvisibility = __check_visible();
char appid[PATH_MAX] = {0, };
int ret;
- ecore_wl_init(NULL);
+ ecore_wl2_init();
appcore_ui_plugin_init(&ops, argc, argv, &hint);
ret = aul_app_get_appid_bypid(getpid(), appid, sizeof(appid));
appcore_base_fini();
appcore_ui_plugin_fini();
- ecore_wl_shutdown();
+ ecore_wl2_shutdown();
}
EXPORT_API void appcore_ui_base_pause(void)