Merge branch 'Plasma/5.12'

This commit is contained in:
David Faure 2018-02-09 09:13:18 +01:00
commit 1a46b663b4

View file

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