summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-11-28 14:12:27 -0600
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-12-14 10:29:52 -0600
commitb32e5da64130c34875507c3643eda9cd089f7743 (patch)
treeb4fc077457a0d8f5e134a211918a200e5b872b20 /src
parent21726e05fc2b62e41c138cbce16c6a7e0e3d20d8 (diff)
ecore_wl2: remove uniconify path from ecore_wl2_window_iconified_set
Wayland shells have no way to unset iconified state. What this code did was corrupt current window state in potentially fatal ways. Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com> Reviewed-by: Chris Michael <cp.michael@samsung.com> Differential Revision: https://phab.enlightenment.org/D7430
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index a2468cc4d0..df4045007b 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1074,35 +1074,6 @@ ecore_wl2_window_iconified_set(Ecore_Wl2_Window *window, Eina_Bool iconified)
1074 zxdg_toplevel_v6_set_minimized(window->zxdg_toplevel); 1074 zxdg_toplevel_v6_set_minimized(window->zxdg_toplevel);
1075 ecore_wl2_display_flush(window->display); 1075 ecore_wl2_display_flush(window->display);
1076 } 1076 }
1077 else
1078 {
1079 if (window->xdg_toplevel)
1080 {
1081 struct wl_array states;
1082 uint32_t *s;
1083
1084 wl_array_init(&states);
1085 s = wl_array_add(&states, sizeof(*s));
1086 *s = XDG_TOPLEVEL_STATE_ACTIVATED;
1087 _xdg_toplevel_cb_configure(window, window->xdg_toplevel,
1088 window->set_config.geometry.w,
1089 window->set_config.geometry.h, &states);
1090 wl_array_release(&states);
1091 }
1092 if (window->zxdg_toplevel)
1093 {
1094 struct wl_array states;
1095 uint32_t *s;
1096
1097 wl_array_init(&states);
1098 s = wl_array_add(&states, sizeof(*s));
1099 *s = ZXDG_TOPLEVEL_V6_STATE_ACTIVATED;
1100 _zxdg_toplevel_cb_configure(window, window->zxdg_toplevel,
1101 window->set_config.geometry.w,
1102 window->set_config.geometry.h, &states);
1103 wl_array_release(&states);
1104 }
1105 }
1106} 1077}
1107 1078
1108EAPI void 1079EAPI void