From f39e0ad20d47a182c45d0541a17ed76e1b531a49 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 27 Oct 2016 13:48:56 -0400 Subject: [PATCH] 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 --- src/lib/ecore_wl2/ecore_wl2_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index fff7176..b89e3e1 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -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, -- 2.7.4