1From 3d33d31d1cba0b83f6b7fef1c98f86a9f56b38df Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Fri, 22 Jul 2022 16:34:32 +0800 4Subject: [PATCH 09/10] HACK: xdg-shell: Allow setting position only in 5 set_window_geometry() 6 7There's an hack in the wl clients to do this for weston. 8 9Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 10--- 11 src/modules/wl_desktop_shell/xdg.c | 10 +++++++++- 12 1 file changed, 9 insertions(+), 1 deletion(-) 13 14diff --git a/src/modules/wl_desktop_shell/xdg.c b/src/modules/wl_desktop_shell/xdg.c 15index 0f8c973ec..c304de4ae 100644 16--- a/src/modules/wl_desktop_shell/xdg.c 17+++ b/src/modules/wl_desktop_shell/xdg.c 18@@ -522,7 +522,15 @@ _e_xdg_surface_cb_window_geometry_set(struct wl_client *client EINA_UNUSED, stru 19 return; 20 } 21 if (e_object_is_del(E_OBJECT(ec))) return; 22- EINA_RECTANGLE_SET(&ec->comp_data->shell.window, x, y, w, h); 23+ if (!w && !h) 24+ { 25+ ec->comp_data->shell.window.x = x; 26+ ec->comp_data->shell.window.y = y; 27+ } 28+ else 29+ { 30+ EINA_RECTANGLE_SET(&ec->comp_data->shell.window, x, y, w, h); 31+ } 32 //DBG("XDG_SHELL: Window Geom Set: %d \t%d %d, %d %d", wl_resource_get_id(resource), x, y, w, h); 33 } 34 35-- 362.20.1 37 38