Changeset View
Changeset View
Standalone View
Standalone View
libinput/connection.cpp
Show First 20 Lines • Show All 650 Lines • ▼ Show 20 Line(s) | 650 | for (auto device: qAsConst(m_devices)) { | |||
---|---|---|---|---|---|
651 | applyScreenToDevice(device); | 651 | applyScreenToDevice(device); | ||
652 | } | 652 | } | ||
653 | } | 653 | } | ||
654 | 654 | | |||
655 | 655 | | |||
656 | void Connection::applyScreenToDevice(Device *device) | 656 | void Connection::applyScreenToDevice(Device *device) | ||
657 | { | 657 | { | ||
658 | #ifndef KWIN_BUILD_TESTING | 658 | #ifndef KWIN_BUILD_TESTING | ||
659 | if (!screens()) | ||||
660 | return; | ||||
661 | | ||||
659 | QMutexLocker locker(&m_mutex); | 662 | QMutexLocker locker(&m_mutex); | ||
660 | if (!device->isTouch()) { | 663 | if (!device->isTouch()) { | ||
661 | return; | 664 | return; | ||
662 | } | 665 | } | ||
663 | int id = -1; | 666 | int id = -1; | ||
664 | // let's try to find a screen for it | 667 | // let's try to find a screen for it | ||
665 | if (screens()->count() == 1) { | 668 | if (screens()->count() == 1) { | ||
666 | id = 0; | 669 | id = 0; | ||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |