commit ce8e6e65a46a476c04d4415baececa6976f0be9f
parent bd76082f00f3841e7de35a489d20bcf8f1931017
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 1 Sep 2015 20:57:22 -0700
pointer: Send frame callbacks for cursor attaches
This fixes animated cursors and Xwayland cursor changes.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/libswc/pointer.c b/libswc/pointer.c
@@ -69,6 +69,7 @@ handle_cursor_surface_destroy(struct wl_listener *listener, void *data)
static bool
update(struct view *view)
{
+ view_frame(view, get_time());
return true;
}
diff --git a/libswc/view.h b/libswc/view.h
@@ -122,7 +122,7 @@ void view_update_screens(struct view *view);
* Send a new frame event through the view's event signal.
*
* This should be called by the view itself when the next frame is visible to
- * the user. If time information is not available, swc_time() can be passed
+ * the user. If time information is not available, get_time() can be passed
* instead.
*/
void view_frame(struct view *view, uint32_t time);