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:
Chris Michael 2016-10-27 13:48:56 -04:00
parent 257b4f0af8
commit f39e0ad20d
1 changed files with 1 additions and 1 deletions

View File

@ -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,