seat: Move cursor storage to MetaWaylandPointer

This commit is contained in:
Jasper St. Pierre
2014-04-17 16:54:30 -04:00
parent 76544ff6e1
commit ae0853ed86
8 changed files with 61 additions and 48 deletions

View File

@ -26,6 +26,8 @@
#include "meta-wayland-types.h"
#include <meta/meta-cursor-tracker.h>
struct _MetaWaylandPointerGrabInterface
{
void (*focus) (MetaWaylandPointerGrab *grab,
@ -47,6 +49,11 @@ struct _MetaWaylandPointer
struct wl_list resource_list;
struct wl_list focus_resource_list;
MetaCursorTracker *cursor_tracker;
MetaWaylandSurface *cursor_surface;
struct wl_listener cursor_surface_destroy_listener;
int hotspot_x, hotspot_y;
MetaWaylandSurface *focus_surface;
struct wl_listener focus_surface_listener;
guint32 focus_serial;
@ -97,4 +104,7 @@ void
meta_wayland_pointer_update_current_focus (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface);
void
meta_wayland_pointer_update_cursor_surface (MetaWaylandPointer *pointer);
#endif /* __META_WAYLAND_POINTER_H__ */