wayland: Export function to tell whether a button belongs to a pad group
This commit is contained in:
parent
406677e2a0
commit
18f301cec9
@ -165,8 +165,8 @@ tablet_pad_group_get_n_modes (MetaWaylandTabletPadGroup *group)
|
|||||||
return n_modes;
|
return n_modes;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
gboolean
|
||||||
tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||||
guint button)
|
guint button)
|
||||||
{
|
{
|
||||||
MetaBackend *backend = meta_get_backend ();
|
MetaBackend *backend = meta_get_backend ();
|
||||||
@ -207,7 +207,7 @@ meta_wayland_tablet_pad_group_notify (MetaWaylandTabletPadGroup *group,
|
|||||||
{
|
{
|
||||||
uint32_t *pos;
|
uint32_t *pos;
|
||||||
|
|
||||||
if (!tablet_pad_group_has_button (group, i))
|
if (!meta_wayland_tablet_pad_group_has_button (group, i))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pos = wl_array_add (&buttons, sizeof (*pos));
|
pos = wl_array_add (&buttons, sizeof (*pos));
|
||||||
|
@ -66,6 +66,8 @@ gboolean meta_wayland_tablet_pad_group_handle_event (MetaWaylandTable
|
|||||||
|
|
||||||
void meta_wayland_tablet_pad_group_sync_focus (MetaWaylandTabletPadGroup *group);
|
void meta_wayland_tablet_pad_group_sync_focus (MetaWaylandTabletPadGroup *group);
|
||||||
|
|
||||||
|
gboolean meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||||
|
guint button);
|
||||||
gboolean meta_wayland_tablet_pad_group_is_mode_switch_button (MetaWaylandTabletPadGroup *group,
|
gboolean meta_wayland_tablet_pad_group_is_mode_switch_button (MetaWaylandTabletPadGroup *group,
|
||||||
guint button);
|
guint button);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user