wayland: Make MetaWaylandPointer struct definition private

Move it outside the header and into private code.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3627>
This commit is contained in:
Carlos Garnacho 2024-02-27 13:18:30 +01:00 committed by Marge Bot
parent f53adae278
commit bff8269a3e
2 changed files with 29 additions and 29 deletions

View File

@ -84,6 +84,35 @@ enum
static guint signals[LAST_SIGNAL];
struct _MetaWaylandPointer
{
MetaWaylandInputDevice parent;
MetaWaylandPointerClient *focus_client;
GHashTable *pointer_clients;
MetaWaylandSurface *focus_surface;
gulong focus_surface_destroyed_handler_id;
gulong focus_surface_alive_notify_id;
guint32 focus_serial;
guint32 click_serial;
MetaWaylandSurface *cursor_surface;
gulong cursor_surface_destroy_id;
guint32 grab_button;
guint32 grab_serial;
guint32 grab_time;
float grab_x, grab_y;
float last_rel_x, last_rel_y;
ClutterInputDevice *device;
MetaWaylandSurface *current;
gulong current_surface_destroyed_handler_id;
guint32 button_count;
};
G_DEFINE_TYPE (MetaWaylandPointer, meta_wayland_pointer,
META_TYPE_WAYLAND_INPUT_DEVICE)

View File

@ -46,35 +46,6 @@ struct _MetaWaylandPointerClient
ClutterEventType active_touchpad_gesture;
};
struct _MetaWaylandPointer
{
MetaWaylandInputDevice parent;
MetaWaylandPointerClient *focus_client;
GHashTable *pointer_clients;
MetaWaylandSurface *focus_surface;
gulong focus_surface_destroyed_handler_id;
gulong focus_surface_alive_notify_id;
guint32 focus_serial;
guint32 click_serial;
MetaWaylandSurface *cursor_surface;
gulong cursor_surface_destroy_id;
guint32 grab_button;
guint32 grab_serial;
guint32 grab_time;
float grab_x, grab_y;
float last_rel_x, last_rel_y;
ClutterInputDevice *device;
MetaWaylandSurface *current;
gulong current_surface_destroyed_handler_id;
guint32 button_count;
};
void meta_wayland_pointer_enable (MetaWaylandPointer *pointer);
void meta_wayland_pointer_disable (MetaWaylandPointer *pointer);