Merge branch 'Plasma/5.12'

icc-effect-5.14.5
David Faure 2018-02-09 09:13:18 +01:00
commit 1a46b663b4
1 changed files with 2 additions and 0 deletions

View File

@ -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: