ecore-evas-wayland: do not trigger resize operation when performing rotation

@fix
This commit is contained in:
Mike Blumenkrantz 2017-05-17 16:02:53 -04:00
parent 871e0c8de8
commit d0f707ef91
1 changed files with 1 additions and 18 deletions

View File

@ -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;