From d0f707ef913d4ef2b4598ab0b2bf2aa43041e060 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 17 May 2017 16:02:53 -0400 Subject: [PATCH] ecore-evas-wayland: do not trigger resize operation when performing rotation @fix --- .../wayland/ecore_evas_wayland_common.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 165c89ce86..4db8b1000f 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -490,21 +490,11 @@ _rotation_do(Ecore_Evas *ee, int rotation, int resize) evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh); /* check for fullscreen */ - if (!ee->prop.fullscreen) - { - /* resize the ecore_wayland window */ - ecore_wl2_window_resize(wdata->win, - ee->req.h + fw, ee->req.w + fh, 0); - } - else + if (ee->prop.fullscreen) { /* resize the canvas based on rotation */ if ((rotation == 0) || (rotation == 180)) { - /* resize the ecore_wayland window */ - ecore_wl2_window_resize(wdata->win, - ee->req.w, ee->req.h, 0); - /* resize the canvas */ evas_output_size_set(ee->evas, ee->req.w, ee->req.h); evas_output_viewport_set(ee->evas, 0, 0, @@ -512,10 +502,6 @@ _rotation_do(Ecore_Evas *ee, int rotation, int resize) } else { - /* resize the ecore_wayland window */ - ecore_wl2_window_resize(wdata->win, - ee->req.h, ee->req.w, 0); - /* resize the canvas */ evas_output_size_set(ee->evas, ee->req.h, ee->req.w); evas_output_viewport_set(ee->evas, 0, 0, @@ -584,9 +570,6 @@ _rotation_do(Ecore_Evas *ee, int rotation, int resize) } else { - /* resize the ecore_wayland window */ - ecore_wl2_window_resize(wdata->win, ee->w, ee->h, 0); - /* record the current rotation of the ecore_evas */ ee->rotation = rotation;