Changeset View
Changeset View
Standalone View
Standalone View
libinput/connection.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | 654 | if (internalId != -1) { | |||
---|---|---|---|---|---|
656 | id = internalId; | 656 | id = internalId; | ||
657 | } else { | 657 | } else { | ||
658 | // just take first screen, we have no clue | 658 | // just take first screen, we have no clue | ||
659 | id = 0; | 659 | id = 0; | ||
660 | } | 660 | } | ||
661 | } | 661 | } | ||
662 | } | 662 | } | ||
663 | device->setScreenId(id); | 663 | device->setScreenId(id); | ||
664 | | ||||
665 | // TODO: this is currently non-functional even on DRM. Needs orientation() override there. | ||||
664 | device->setOrientation(screens()->orientation(id)); | 666 | device->setOrientation(screens()->orientation(id)); | ||
665 | #else | 667 | #else | ||
666 | Q_UNUSED(device) | 668 | Q_UNUSED(device) | ||
667 | #endif | 669 | #endif | ||
668 | } | 670 | } | ||
669 | 671 | | |||
670 | bool Connection::isSuspended() const | 672 | bool Connection::isSuspended() const | ||
671 | { | 673 | { | ||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |