wayland: Add a cursor cache

We avoid creating a new GdkCursor object every time
_gdk_wayland_display_get_cursor_for_name/type() is called.
This commit is contained in:
Kristian Høgsberg
2013-03-20 22:34:03 -04:00
parent 0d9d808217
commit 62eb5d0358
4 changed files with 78 additions and 0 deletions

View File

@ -65,6 +65,7 @@ struct _GdkWaylandDisplay
struct wl_data_device_manager *data_device_manager;
struct wl_cursor_theme *cursor_theme;
GSList *cursor_cache;
GSource *event_source;