ev->event_win = win->id;
// TIZEN_ONLY(20171112): support tizen_position
- ev->x = window->geometry.x;
- ev->y = window->geometry.y;
+ ev->x = win->saved.x;
+ ev->y = win->saved.y;
//
if ((win->set_config.geometry.w == win->def_config.geometry.w) &&
win->req_config = win->def_config;
// TIZEN_ONLY(20160323)
- window->configured.w = w;
- window->configured.h = h;
- window->configured.edges = edges;
+// TODO: should fix this code base on opensource
+ win->configured.w = win->saved.w;
+ win->configured.h = win->saved.h;
+ win->configured.edges = ev->edges;
//
ecore_event_add(ECORE_WL2_EVENT_WINDOW_CONFIGURE, ev, NULL, NULL);
win->configured.x = x;
win->configured.y = y;
-
- if ((x != win->geometry.x) || (y != win->geometry.y))
+//TODO: check win->saved and win->geometry is same.
+ if ((x != win->saved.x) || (y != win->saved.y))
{
- ecore_wl2_window_geometry_set(win, x, y, win->geometry.w, win->geometry.h);
- _ecore_wl2_window_configure_send(win,
- win->configured.w,
- win->configured.h,
- win->configured.edges,
- win->fullscreen,
- win->maximized);
+ ecore_wl2_window_geometry_set(win, x, y, win->saved.w, win->saved.h);
+ _ecore_wl2_window_configure_send(win);
}
}
&_tizen_position_listener, window);
if (window->surface)
tizen_position_set(window->tz_position,
- window->geometry.x, window->geometry.y);
+ window->saved.x, window->saved.y);
}
if (window->role)
(uint32_t)angle, x, y, w, h);
if ((rot == (i * 90)) &&
- ((window->geometry.w != w) || (window->geometry.h != h)))
+ ((window->saved.w != w) || (window->saved.h != h)))
{
- _ecore_wl2_window_configure_send(window, w, h, 0,
- window->fullscreen,
- window->maximized);
+ _ecore_wl2_window_configure_send(window);
}
}
}
{
EINA_SAFETY_ON_NULL_RETURN(window);
- window->geometry.x = x;
- window->geometry.y = y;
+ window->saved.x = x;
+ window->saved.y = y;
if ((window->surface) && (window->tz_position))
{
if ((window->configured.x != x) || (window->configured.y != y))
- tizen_position_set(window->tz_position, window->geometry.x, window->geometry.y);
+ tizen_position_set(window->tz_position, window->saved.x, window->saved.y);
}
}
if (window->zxdg_toplevel)
zxdg_toplevel_v6_unset_maximized(window->zxdg_toplevel);
//TIZEN_ONLY(20150625)
- _ecore_wl2_window_configure_send(window, window->saved.w, window->saved.h,
- 0, window->fullscreen, window->maximized);
+ _ecore_wl2_window_configure_send(window);
//
}
ecore_wl2_display_flush(window->display);
if (window->zxdg_toplevel)
zxdg_toplevel_v6_unset_fullscreen(window->zxdg_toplevel);
//TIZEN_ONLY(20150625)
- _ecore_wl2_window_configure_send(window, window->saved.w, window->saved.h,
- 0, window->fullscreen, window->maximized);
+ _ecore_wl2_window_configure_send(window);
//
}
ecore_wl2_display_flush(window->display);
static void
_ecore_wl2_window_iconified_set(Ecore_Wl2_Window *window, Eina_Bool iconified, Eina_Bool send_event)
{
+ Eina_Bool prev;
+
EINA_SAFETY_ON_NULL_RETURN(window);
+ prev = window->set_config.minimized;
iconified = !!iconified;
- window->minimized = iconified;
+ if (prev == iconified) return;
+
+ window->set_config.minimized = iconified;
if (iconified)
{
s = wl_array_add(&states, sizeof(*s));
*s = ZXDG_TOPLEVEL_V6_STATE_ACTIVATED;
_zxdg_toplevel_cb_configure(window, window->zxdg_toplevel,
- window->geometry.w,
- window->geometry.h, &states);
+ window->saved.w,
+ window->saved.h, &states);
wl_array_release(&states);
}
}
rotation = ecore_wl2_window_rotation_get(win);
if ((rotation % 90 != 0) || (rotation / 90 > 3) || (rotation < 0)) return;
if ((i == (rotation / 90)) &&
- ((win->geometry.w != w) || (win->geometry.h != h)))
+ ((win->saved.w != w) || (win->saved.h != h)))
{
- _ecore_wl2_window_configure_send(win, w, h, 0,
- win->fullscreen,
- win->maximized);
+ _ecore_wl2_window_configure_send(win);
}
}
win->has_buffer = EINA_TRUE;
}
-<<<<<<< 0f309f06c19227cc6445aff8550ae8d885d2a48a
EAPI Eina_Bool
ecore_wl2_window_resizing_get(Ecore_Wl2_Window *window)
{
eina_array_push(_ecore_evas_wl_event_hdls, h);
//
// TIZEN_ONLY(20171109): support a tizen_input_device_manager interface
- _ecore_evas_wl_event_hdls[18] =
+ h =
ecore_event_handler_add(ECORE_WL2_EVENT_TIZEN_DEVICE_ADD,
_ecore_evas_wl_common_cb_tizen_device_add, NULL);
- _ecore_evas_wl_event_hdls[19] =
+ eina_array_push(_ecore_evas_wl_event_hdls, h);
+ h =
ecore_event_handler_add(ECORE_WL2_EVENT_TIZEN_DEVICE_DEL,
_ecore_evas_wl_common_cb_tizen_device_del, NULL);
+ eina_array_push(_ecore_evas_wl_event_hdls, h);
//
// TIZEN_ONLY(20160120): support visibility_change event
- _ecore_evas_wl_event_hdls[20] =
+ h =
ecore_event_handler_add(ECORE_WL2_EVENT_WINDOW_VISIBILITY_CHANGE,
_ecore_evas_wl_common_cb_window_visibility_change, NULL);
+ eina_array_push(_ecore_evas_wl_event_hdls, h);
//
ecore_event_evas_init();