Fix compilation without libinput

CCMAIL: notmart@gmail.com
icc-effect-5.14.5
David Faure 2018-02-09 09:12:29 +01:00
parent 40862c034a
commit b1035b6826
1 changed files with 2 additions and 0 deletions

View File

@ -51,9 +51,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: