wayland/tablet: Fix warnings when native backend is disabled

This commit is contained in:
Jonas Ådahl 2018-08-17 13:58:31 +02:00
parent d686dc9f46
commit 8f2680c612
2 changed files with 3 additions and 1 deletions

View File

@ -122,9 +122,9 @@ gboolean
meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
guint button)
{
#ifdef HAVE_NATIVE_BACKEND
MetaBackend *backend = meta_get_backend ();
#ifdef HAVE_NATIVE_BACKEND
if (META_IS_BACKEND_NATIVE (backend))
{
struct libinput_device *libinput_device;

View File

@ -131,7 +131,9 @@ MetaWaylandTabletPad *
meta_wayland_tablet_pad_new (ClutterInputDevice *device,
MetaWaylandTabletSeat *tablet_seat)
{
#ifdef HAVE_NATIVE_BACKEND
MetaBackend *backend = meta_get_backend ();
#endif
MetaWaylandTabletPad *pad;
guint n_elems, i;