diff --git a/input.cpp b/input.cpp index 7eaa967890..cd6d841f3e 100644 --- a/input.cpp +++ b/input.cpp @@ -1873,11 +1873,9 @@ bool InputRedirection::hasAlphaNumericKeyboard() bool InputRedirection::hasTabletModeSwitch() { -#if HAVE_INPUT if (m_libInput) { return m_libInput->hasTabletModeSwitch(); } -#endif return false; } diff --git a/tabletmodemanager.cpp b/tabletmodemanager.cpp index e9ad46c5af..9776706093 100644 --- a/tabletmodemanager.cpp +++ b/tabletmodemanager.cpp @@ -49,11 +49,9 @@ 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: