forked from enlightenment/efl
ecore_wl2: Better handling of extra commit
Discard the old callback so it can't fire later - which can happen after the window's deleted in certain cases.
This commit is contained in:
parent
55b8cf8244
commit
51599fe86c
|
@ -1483,8 +1483,10 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
|
|||
EINA_SAFETY_ON_NULL_RETURN(window->surface);
|
||||
|
||||
if (window->commit_pending)
|
||||
ERR("Commit before previous commit processed");
|
||||
|
||||
{
|
||||
wl_callback_destroy(window->callback);
|
||||
ERR("Commit before previous commit processed");
|
||||
}
|
||||
if (!window->pending.configure)
|
||||
{
|
||||
window->commit_pending = EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue