mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -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,
|
||||
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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user