ecore_evas_wayland: Don't use frame callbacks on windows with no shell surface

If we set a frame callback on a window with no shell surface (ie: and unmapped
window), the frame callback will never fire.  This was preventing some
applications like rage from ever posting a frame.
This commit is contained in:
Derek Foreman 2016-10-14 16:02:45 -05:00
parent 35995be7b0
commit 54582858d8
1 changed files with 1 additions and 0 deletions

View File

@ -1373,6 +1373,7 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas EINA_UNUSED, void
wdata = ee->engine.data;
surf = ecore_wl2_window_surface_get(wdata->win);
if (!surf) return;
if (!ecore_wl2_window_has_shell_surface(wdata->win)) return;
wdata->anim_callback = wl_surface_frame(surf);
wl_callback_add_listener(wdata->anim_callback, &_anim_listener, ee);