diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-08-04 16:11:00 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-08-04 16:10:35 -0400 |
commit | 99b60390f49837f91fc9dcd532cdec4b2aaf3920 (patch) | |
tree | 6429b7f6c8f4dbbd23aef8f881933695c1696194 | |
parent | f2627d49c115e8874dfe0b32581a80b171799bbc (diff) | |
download | efl-99b60390f49837f91fc9dcd532cdec4b2aaf3920.tar.gz |
ecore-wl2: sync aux hints after window creation
ensure hints are available when needed
@fix
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_window.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index eeedca10ec..ba7f4e75d6 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -555,7 +555,11 @@ _ecore_wl2_window_surface_create(Ecore_Wl2_Window *window) window->surface_id = wl_proxy_get_id((struct wl_proxy *)window->surface); if (window->display->wl.efl_aux_hints) - efl_aux_hints_get_supported_aux_hints(window->display->wl.efl_aux_hints, window->surface); + { + efl_aux_hints_get_supported_aux_hints(window->display->wl.efl_aux_hints, window->surface); + if (_ecore_wl2_display_sync_get()) + wl_display_roundtrip(window->display->wl.display); + } } } @@ -618,11 +622,11 @@ ecore_wl2_window_new(Ecore_Wl2_Display *display, Ecore_Wl2_Window *parent, int x win->opaque.h = h; win->pending.configure = EINA_TRUE; - _ecore_wl2_window_surface_create(win); - display->windows = eina_inlist_append(display->windows, EINA_INLIST_GET(win)); + _ecore_wl2_window_surface_create(win); + return win; } |