mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
wayland: Export function to tell whether a button belongs to a pad group
This commit is contained in:
parent
406677e2a0
commit
18f301cec9
@ -165,9 +165,9 @@ tablet_pad_group_get_n_modes (MetaWaylandTabletPadGroup *group)
|
||||
return n_modes;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||
guint button)
|
||||
gboolean
|
||||
meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||
guint button)
|
||||
{
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
|
||||
@ -207,7 +207,7 @@ meta_wayland_tablet_pad_group_notify (MetaWaylandTabletPadGroup *group,
|
||||
{
|
||||
uint32_t *pos;
|
||||
|
||||
if (!tablet_pad_group_has_button (group, i))
|
||||
if (!meta_wayland_tablet_pad_group_has_button (group, i))
|
||||
continue;
|
||||
|
||||
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);
|
||||
|
||||
gboolean meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||
guint button);
|
||||
gboolean meta_wayland_tablet_pad_group_is_mode_switch_button (MetaWaylandTabletPadGroup *group,
|
||||
guint button);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user