mirror of
https://github.com/brl/mutter.git
synced 2025-04-01 16:13:46 +00:00
wayland: Remove unused list from MetaWaylandTablet
This object has no concept of focus itself, so the focus_resource_list is unused.
This commit is contained in:
parent
f820d4c886
commit
2c13ae2b59
@ -48,7 +48,6 @@ meta_wayland_tablet_new (ClutterInputDevice *device,
|
|||||||
|
|
||||||
tablet = g_slice_new0 (MetaWaylandTablet);
|
tablet = g_slice_new0 (MetaWaylandTablet);
|
||||||
wl_list_init (&tablet->resource_list);
|
wl_list_init (&tablet->resource_list);
|
||||||
wl_list_init (&tablet->focus_resource_list);
|
|
||||||
tablet->device = device;
|
tablet->device = device;
|
||||||
tablet->tablet_seat = tablet_seat;
|
tablet->tablet_seat = tablet_seat;
|
||||||
|
|
||||||
@ -119,12 +118,5 @@ struct wl_resource *
|
|||||||
meta_wayland_tablet_lookup_resource (MetaWaylandTablet *tablet,
|
meta_wayland_tablet_lookup_resource (MetaWaylandTablet *tablet,
|
||||||
struct wl_client *client)
|
struct wl_client *client)
|
||||||
{
|
{
|
||||||
struct wl_resource *resource;
|
return wl_resource_find_for_client (&tablet->resource_list, client);
|
||||||
|
|
||||||
resource = wl_resource_find_for_client (&tablet->resource_list, client);
|
|
||||||
|
|
||||||
if (!resource)
|
|
||||||
resource = wl_resource_find_for_client (&tablet->focus_resource_list, client);
|
|
||||||
|
|
||||||
return resource;
|
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,6 @@ struct _MetaWaylandTablet
|
|||||||
ClutterInputDevice *device;
|
ClutterInputDevice *device;
|
||||||
|
|
||||||
struct wl_list resource_list;
|
struct wl_list resource_list;
|
||||||
struct wl_list focus_resource_list;
|
|
||||||
|
|
||||||
MetaWaylandSurface *current;
|
MetaWaylandSurface *current;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user