Remove remaining HAVE_INPUT ifdef sections

Somehow they sneaked in between creating the patch for making libinput
mandatory and pushing the patch.
master
Martin Flöser 7 years ago
parent ded7225572
commit 137b954add

@ -1873,11 +1873,9 @@ bool InputRedirection::hasAlphaNumericKeyboard()
bool InputRedirection::hasTabletModeSwitch() bool InputRedirection::hasTabletModeSwitch()
{ {
#if HAVE_INPUT
if (m_libInput) { if (m_libInput) {
return m_libInput->hasTabletModeSwitch(); return m_libInput->hasTabletModeSwitch();
} }
#endif
return false; return false;
} }

@ -49,11 +49,9 @@ TabletModeInputEventSpy::TabletModeInputEventSpy(TabletModeManager *parent)
void TabletModeInputEventSpy::switchEvent(SwitchEvent *event) void TabletModeInputEventSpy::switchEvent(SwitchEvent *event)
{ {
#if HAVE_INPUT
if (!event->device()->isTabletModeSwitch()) { if (!event->device()->isTabletModeSwitch()) {
return; return;
} }
#endif
switch (event->state()) { switch (event->state()) {
case SwitchEvent::State::Off: case SwitchEvent::State::Off:

Loading…
Cancel
Save