mirror of
https://github.com/brl/mutter.git
synced 2025-07-05 10:31:18 +00:00
seat: Move cursor storage to MetaWaylandPointer
This commit is contained in:
@ -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__ */
|
||||
|
Reference in New Issue
Block a user