summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-10-30 14:23:07 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-10-30 14:23:07 -0500
commit059613222a288b5efe8e2bf514cdcfe17704e589 (patch)
tree0934b844cd1282e326e012c7ecea4e26ef3e0af8 /src
parent43160401bb095b6e02c04ee6c6d7468cc1381599 (diff)
ecore_evas_wayland: Fix session recovery
Turns out when apps reconnect to the compositor they don't always realize they need to redraw themselves. Force a manual render at startup if we end up in a state where an update is needed but has probably been dropped on the floor.
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c3
1 files changed, 3 insertions, 0 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 f0705bd020..00da3f52bb 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
@@ -595,6 +595,7 @@ _ecore_evas_wl_common_cb_window_configure_complete(void *data EINA_UNUSED, int t
595 Ecore_Evas *ee; 595 Ecore_Evas *ee;
596 Ecore_Wl2_Event_Window_Configure_Complete *ev; 596 Ecore_Wl2_Event_Window_Configure_Complete *ev;
597 Evas_Engine_Info_Wayland *einfo; 597 Evas_Engine_Info_Wayland *einfo;
598 Ecore_Evas_Engine_Wl_Data *wdata;
598 599
599 LOGFN(__FILE__, __LINE__, __FUNCTION__); 600 LOGFN(__FILE__, __LINE__, __FUNCTION__);
600 601
@@ -611,6 +612,8 @@ _ecore_evas_wl_common_cb_window_configure_complete(void *data EINA_UNUSED, int t
611 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) 612 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
612 ERR("Failed to set Evas Engine Info for '%s'", ee->driver); 613 ERR("Failed to set Evas Engine Info for '%s'", ee->driver);
613 614
615 wdata = ee->engine.data;
616 if (wdata->frame) ecore_evas_manual_render(ee);
614 ecore_evas_manual_render_set(ee, 0); 617 ecore_evas_manual_render_set(ee, 0);
615 618
616 return ECORE_CALLBACK_PASS_ON; 619 return ECORE_CALLBACK_PASS_ON;