From: Juyeon Lee Date: Fri, 22 Dec 2017 08:07:11 +0000 (+0900) Subject: ecore_wl2_window: window configured incorrect size when zxdg_toplevel configure width... X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~648 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d79f53139f964d28d51c77555089a0d092c1036b;p=platform%2Fupstream%2Fefl.git ecore_wl2_window: window configured incorrect size when zxdg_toplevel configure width, height in case of below if window geometry is the same width / height as protocol passing by Server -> Client : zxdg_toplevel_v6@xx.configure(720,1280,array) than window has configured width/height with size 0 once window get rotation changed, it generate rotation event refering to configure width,height than, it became size 0 window Change-Id: I634e62a97e34a3a7d5d9d623b6ce589050aacae7 --- diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 1bb26d6..b183500 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -223,6 +223,18 @@ _zxdg_toplevel_cb_configure(void *data, struct zxdg_toplevel_v6 *zxdg_toplevel E break; } } + + if ((!width) && (!height) && (!win->fullscreen) && (!win->maximized) && + ((win->fullscreen != fs) || (win->maximized != max))) + width = win->saved.w, height = win->saved.h; + + _ecore_wl2_window_configure_send(win, width, height, !!win->resizing, + win->fullscreen, win->maximized); + + if (win->focused) + _ecore_wl2_window_activate_send(win); + else + _ecore_wl2_window_deactivate_send(win); } static void