mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
wayland/tablet: Fix warnings when native backend is disabled
This commit is contained in:
parent
d686dc9f46
commit
8f2680c612
@ -122,9 +122,9 @@ gboolean
|
|||||||
meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
|
||||||
guint button)
|
guint button)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_NATIVE_BACKEND
|
||||||
MetaBackend *backend = meta_get_backend ();
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
|
||||||
#ifdef HAVE_NATIVE_BACKEND
|
|
||||||
if (META_IS_BACKEND_NATIVE (backend))
|
if (META_IS_BACKEND_NATIVE (backend))
|
||||||
{
|
{
|
||||||
struct libinput_device *libinput_device;
|
struct libinput_device *libinput_device;
|
||||||
|
@ -131,7 +131,9 @@ MetaWaylandTabletPad *
|
|||||||
meta_wayland_tablet_pad_new (ClutterInputDevice *device,
|
meta_wayland_tablet_pad_new (ClutterInputDevice *device,
|
||||||
MetaWaylandTabletSeat *tablet_seat)
|
MetaWaylandTabletSeat *tablet_seat)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_NATIVE_BACKEND
|
||||||
MetaBackend *backend = meta_get_backend ();
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
#endif
|
||||||
MetaWaylandTabletPad *pad;
|
MetaWaylandTabletPad *pad;
|
||||||
guint n_elems, i;
|
guint n_elems, i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user