forked from enlightenment/efl
ecore-wl2: Don't create cursor frame callback if there is no cursor
surface In the event that we have no cursor surface, then we should not be creating a cursor frame callback. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
257b4f0af8
commit
f39e0ad20d
|
@ -672,7 +672,7 @@ _pointer_cb_frame(void *data, struct wl_callback *callback, unsigned int timesta
|
|||
input->cursor.frame_cb = NULL;
|
||||
}
|
||||
|
||||
if (!input->cursor.frame_cb)
|
||||
if ((!input->cursor.frame_cb) && (input->cursor.surface))
|
||||
{
|
||||
input->cursor.frame_cb = wl_surface_frame(input->cursor.surface);
|
||||
wl_callback_add_listener(input->cursor.frame_cb,
|
||||
|
|
Loading…
Reference in New Issue