Revert "ecore-evas-wayland: Fix issue of apps not starting up in fullscreen mode"
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 8 Mar 2017 18:45:07 +0000 (12:45 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 9 Mar 2017 18:21:08 +0000 (12:21 -0600)
This reverts commit dfb18775002c5130b60bdc03ed60b7de356e6012.

This did fix the problem of "rage -f" not starting properly, but it
broke toggling between fullscreen and !fullscreen for other apps.

They'd resize to a large, but not quite fullscreen, size, then render with decor
present, and big black bars on the right/bottom edges (which were offscreen due
to the client size and position)

This isn't really the right place to fix this - it's a protocol usage bug, not
a canvas bug.

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_private.h

index f7f6151..53e1c89 100644 (file)
@@ -1419,14 +1419,6 @@ _ecore_evas_wl_common_fullscreen_set(Ecore_Evas *ee, Eina_Bool on)
    if (ee->prop.fullscreen == on) return;
 
    wdata = ee->engine.data;
-
-   ee->prop.fullscreen = on;
-   if ((!wdata->sync_done) || (!ee->visible))
-     {
-        wdata->defer_fullscreen = EINA_TRUE;
-        return;
-     }
-
    ecore_wl2_window_fullscreen_set(wdata->win, on);
 }
 
@@ -1806,13 +1798,6 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
 
         ecore_wl2_window_show(wdata->win);
         ecore_wl2_window_alpha_set(wdata->win, ee->alpha);
-        ecore_wl2_window_transparent_set(wdata->win, ee->transparent);
-
-        if (wdata->defer_fullscreen)
-          {
-             wdata->defer_fullscreen = EINA_FALSE;
-             ecore_wl2_window_fullscreen_set(wdata->win, ee->prop.fullscreen);
-          }
 
         einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
         if (einfo)
index 2f98dcf..e2a7840 100644 (file)
@@ -50,7 +50,6 @@ struct _Ecore_Evas_Engine_Wl_Data
    Eina_Bool sync_done : 1;
    Eina_Bool defer_show : 1;
    Eina_Bool reset_pending : 1;
-   Eina_Bool defer_fullscreen : 1;
 };
 
 Ecore_Evas_Interface_Wayland *_ecore_evas_wl_interface_new(void);