wayland: Make MetaWaylandTabletTool struct private

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3627>
This commit is contained in:
Carlos Garnacho 2024-02-27 23:09:54 +01:00 committed by Marge Bot
parent f17300a22e
commit 8519a31e8f
2 changed files with 29 additions and 29 deletions

View File

@ -38,6 +38,35 @@
#define TABLET_AXIS_MAX 65535
struct _MetaWaylandTabletTool
{
MetaWaylandTabletSeat *seat;
ClutterInputDevice *device;
ClutterInputDeviceTool *device_tool;
struct wl_list resource_list;
struct wl_list focus_resource_list;
MetaWaylandSurface *focus_surface;
struct wl_listener focus_surface_destroy_listener;
MetaWaylandSurface *cursor_surface;
struct wl_listener cursor_surface_destroy_listener;
MetaCursorRenderer *cursor_renderer;
MetaCursorSpriteXcursor *default_sprite;
MetaWaylandSurface *current;
guint32 pressed_buttons;
guint32 button_count;
guint32 proximity_serial;
guint32 down_serial;
guint32 button_serial;
float grab_x, grab_y;
MetaWaylandTablet *current_tablet;
};
static MetaBackend *
backend_from_tool (MetaWaylandTabletTool *tool)
{

View File

@ -28,35 +28,6 @@
#include "backends/meta-cursor-sprite-xcursor.h"
#include "wayland/meta-wayland-types.h"
struct _MetaWaylandTabletTool
{
MetaWaylandTabletSeat *seat;
ClutterInputDevice *device;
ClutterInputDeviceTool *device_tool;
struct wl_list resource_list;
struct wl_list focus_resource_list;
MetaWaylandSurface *focus_surface;
struct wl_listener focus_surface_destroy_listener;
MetaWaylandSurface *cursor_surface;
struct wl_listener cursor_surface_destroy_listener;
MetaCursorRenderer *cursor_renderer;
MetaCursorSpriteXcursor *default_sprite;
MetaWaylandSurface *current;
guint32 pressed_buttons;
guint32 button_count;
guint32 proximity_serial;
guint32 down_serial;
guint32 button_serial;
float grab_x, grab_y;
MetaWaylandTablet *current_tablet;
};
MetaWaylandTabletTool * meta_wayland_tablet_tool_new (MetaWaylandTabletSeat *seat,
ClutterInputDevice *device,
ClutterInputDeviceTool *device_tool);