summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_window.c
diff options
context:
space:
mode:
authorvivek <vivek.ellur@samsung.com>2014-11-12 08:32:10 -0500
committerChris Michael <cp.michael@samsung.com>2014-11-12 08:32:42 -0500
commit35beedd3d7e84723fb5ce7aca7102b594edece66 (patch)
tree022ec4ce460723fbe1bf621b020cdc8aa27a72b5 /src/lib/ecore_wayland/ecore_wl_window.c
parent6e5a4a71563f88816eaa61221ff2f9752428b4a6 (diff)
ecore-wayland: Fix the issue of UnIconifying an xdg_surface
Summary: Fixed the issue of UnIconifying an xdg_surface which is needed for Enlightenment IBox scenario. @fix Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1593
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_window.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index da83e7f91f..247691eb09 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -717,6 +717,9 @@ ecore_wl_window_iconified_set(Ecore_Wl_Window *win, Eina_Bool iconified)
717{ 717{
718 LOGFN(__FILE__, __LINE__, __FUNCTION__); 718 LOGFN(__FILE__, __LINE__, __FUNCTION__);
719 719
720 struct wl_array states;
721 uint32_t *s;
722
720 if (!win) return; 723 if (!win) return;
721 724
722 if (iconified) 725 if (iconified)
@@ -735,9 +738,12 @@ ecore_wl_window_iconified_set(Ecore_Wl_Window *win, Eina_Bool iconified)
735 { 738 {
736 if (win->xdg_surface) 739 if (win->xdg_surface)
737 { 740 {
738 /* TODO: Handle case of UnIconifying an xdg_surface 741 win->type = ECORE_WL_WINDOW_TYPE_TOPLEVEL;
739 * 742 wl_array_init(&states);
740 * NB: This will be needed for Enlightenment IBox scenario */ 743 s = wl_array_add(&states, sizeof(*s));
744 *s = XDG_SURFACE_STATE_ACTIVATED;
745 _ecore_xdg_handle_surface_configure(win, win->xdg_surface, win->saved.w, win->saved.h, &states, 0);
746 wl_array_release(&states);
741 } 747 }
742 else if (win->shell_surface) 748 else if (win->shell_surface)
743 { 749 {