Changeset View
Changeset View
Standalone View
Standalone View
screenedge.cpp
Show First 20 Lines • Show All 1333 Lines • ▼ Show 20 Line(s) | |||||
1334 | 1334 | | |||
1335 | void ScreenEdges::check(const QPoint &pos, const QDateTime &now, bool forceNoPushBack) | 1335 | void ScreenEdges::check(const QPoint &pos, const QDateTime &now, bool forceNoPushBack) | ||
1336 | { | 1336 | { | ||
1337 | bool activatedForClient = false; | 1337 | bool activatedForClient = false; | ||
1338 | for (auto it = m_edges.begin(); it != m_edges.end(); ++it) { | 1338 | for (auto it = m_edges.begin(); it != m_edges.end(); ++it) { | ||
1339 | if (!(*it)->isReserved()) { | 1339 | if (!(*it)->isReserved()) { | ||
1340 | continue; | 1340 | continue; | ||
1341 | } | 1341 | } | ||
1342 | if (!(*it)->activatesForPointer()) { | ||||
1343 | continue; | ||||
1344 | } | ||||
1342 | if ((*it)->approachGeometry().contains(pos)) { | 1345 | if ((*it)->approachGeometry().contains(pos)) { | ||
1343 | (*it)->startApproaching(); | 1346 | (*it)->startApproaching(); | ||
1344 | } | 1347 | } | ||
1345 | if ((*it)->client() != nullptr && activatedForClient) { | 1348 | if ((*it)->client() != nullptr && activatedForClient) { | ||
1346 | (*it)->markAsTriggered(pos, now); | 1349 | (*it)->markAsTriggered(pos, now); | ||
1347 | continue; | 1350 | continue; | ||
1348 | } | 1351 | } | ||
1349 | if ((*it)->check(pos, now, forceNoPushBack)) { | 1352 | if ((*it)->check(pos, now, forceNoPushBack)) { | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |