diff --git a/tabletmodemanager.cpp b/tabletmodemanager.cpp index 9776706093..e9ad46c5af 100644 --- a/tabletmodemanager.cpp +++ b/tabletmodemanager.cpp @@ -49,9 +49,11 @@ TabletModeInputEventSpy::TabletModeInputEventSpy(TabletModeManager *parent) void TabletModeInputEventSpy::switchEvent(SwitchEvent *event) { +#if HAVE_INPUT if (!event->device()->isTabletModeSwitch()) { return; } +#endif switch (event->state()) { case SwitchEvent::State::Off: