From 0fdf4204a5977d66604f3a2bd65d76eb4ed4293e Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 8 May 2018 13:26:12 -0500 Subject: [PATCH] ee_wayland_egl: Remove some amazing weirdness Summary: I don't even know what to put here, but I'll try. wl_egl_window_resize()'s final two parameters indicate new attachment points for a buffer relative to the previous top left corner. When the compositor is resizing a window it already handles the corner placement. Fortunately, compositors seem to ignore the new attach co-ords during resize, so this code hasn't broken anything. It's just a complicated NOP. The new attachment points are intended for use in spontaneous resize, not drag resize, but the only time these functions are called is for drag resize. Depends on D6119 Reviewers: zmike, cedric Reviewed By: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6120 Change-Id: I00722662988871502b8ee41d98ec0951b3e72451 --- .../evas/engines/wayland_egl/evas_wl_main.c | 27 ++-------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c index 86f18b5..0fcb057 100755 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -520,29 +520,6 @@ eng_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth EIN if (ob->win) { - int aw, ah, dx = 0, dy = 0; - - if ((ob->rot == 90) || (ob->rot == 270)) - wl_egl_window_get_attached_size(ob->win, &ah, &aw); - else - wl_egl_window_get_attached_size(ob->win, &aw, &ah); - - if (ob->info->info.edges & 4) // resize from left - { - if ((ob->rot == 90) || (ob->rot == 270)) - dx = ah - h; - else - dx = aw - w; - } - - if (ob->info->info.edges & 1) // resize from top - { - if ((ob->rot == 90) || (ob->rot == 270)) - dy = aw - w; - else - dy = ah - h; - } - //TIZEN_ONLY(20171115): support output transform /* buffer_transform: screen rotation + window rotation * window_transform: window rotation only @@ -555,9 +532,9 @@ eng_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth EIN // if ((ob->rot == 90) || (ob->rot == 270)) - wl_egl_window_resize(ob->win, h, w, dx, dy); + wl_egl_window_resize(ob->win, h, w, 0, 0); else - wl_egl_window_resize(ob->win, w, h, dx, dy); + wl_egl_window_resize(ob->win, w, h, 0, 0); } } -- 2.7.4