forked from enlightenment/efl
ecore_wl2_window: Silence early commit ERR for mouse cursors
Summary: Our wayland mouse cursor code can trigger commits with commit pending when mousing into a window across CSD, which results in quickly setting the default cursors then an animated resize cursor before the first commit has finished. Fixing this is non trivial, and the bug is just a harmless inefficiency of little impact, so just disable the ERR for that specific case instead. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6184
This commit is contained in:
parent
1673b620b0
commit
249ae8e5f0
|
@ -1610,6 +1610,9 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
|
|||
if (window->callback)
|
||||
wl_callback_destroy(window->callback);
|
||||
window->callback = NULL;
|
||||
/* The elm mouse cursor bits do some harmless but weird stuff that
|
||||
* can hit this, silence the warning for that case only. */
|
||||
if (window->type != ECORE_WL2_WINDOW_TYPE_NONE)
|
||||
ERR("Commit before previous commit processed");
|
||||
}
|
||||
if (!window->pending.configure)
|
||||
|
|
Loading…
Reference in New Issue