summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-17 16:02:53 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-19 12:41:16 -0400
commitd0f707ef913d4ef2b4598ab0b2bf2aa43041e060 (patch)
tree5292a22e2457951c3f117608734c41b5e2ba8cf5
parent871e0c8de8f05fc307726db0a4dc1e9f663adeab (diff)
downloadefl-d0f707ef913d4ef2b4598ab0b2bf2aa43041e060.tar.gz
ecore-evas-wayland: do not trigger resize operation when performing rotation
@fix
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c19
1 files changed, 1 insertions, 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;