ecore-wl2: only update pointer frame if there is a pointer surface

fix T4777, T4776
This commit is contained in:
Mike Blumenkrantz 2016-10-28 09:53:29 -04:00
parent 4655f90aaf
commit 1cdeff1c42
1 changed files with 1 additions and 1 deletions

View File

@ -1227,7 +1227,7 @@ _ecore_wl2_input_cursor_update(void *data)
input->cursor.surface,
input->cursor.hot_x, input->cursor.hot_y);
if (!input->cursor.frame_cb)
if (input->cursor.surface && (!input->cursor.frame_cb))
_pointer_cb_frame(input, NULL, 0);
return ECORE_CALLBACK_RENEW;