forked from enlightenment/efl
ecore_wl2_window: Silence some spurious warnings
ecore_wl2_window_commit() must be called during window size negotiation, but this currently trips a warning when no frame callback has been received for the first commit. We can't even have frame callbacks at that point because no buffer is attached. Don't set up the commit_pending logic until after we have a buffer.
This commit is contained in:
parent
b55b8110a9
commit
984d8bd4ce
|
@ -1632,6 +1632,7 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
|
||||||
}
|
}
|
||||||
if (!window->pending.configure)
|
if (!window->pending.configure)
|
||||||
{
|
{
|
||||||
|
if (window->has_buffer)
|
||||||
window->commit_pending = EINA_TRUE;
|
window->commit_pending = EINA_TRUE;
|
||||||
window->callback = wl_surface_frame(window->surface);
|
window->callback = wl_surface_frame(window->surface);
|
||||||
wl_callback_add_listener(window->callback, &_frame_listener, window);
|
wl_callback_add_listener(window->callback, &_frame_listener, window);
|
||||||
|
@ -1707,6 +1708,7 @@ ecore_wl2_window_false_commit(Ecore_Wl2_Window *window)
|
||||||
wl_callback_add_listener(window->callback, &_frame_listener, window);
|
wl_callback_add_listener(window->callback, &_frame_listener, window);
|
||||||
wl_surface_commit(window->surface);
|
wl_surface_commit(window->surface);
|
||||||
ecore_wl2_display_flush(window->display);
|
ecore_wl2_display_flush(window->display);
|
||||||
|
if (window->has_buffer)
|
||||||
window->commit_pending = EINA_TRUE;
|
window->commit_pending = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue