Merge branch 'Plasma/5.12'
This commit is contained in:
commit
1a46b663b4
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue