Changeset View
Changeset View
Standalone View
Standalone View
screenedge.cpp
Show First 20 Lines • Show All 1388 Lines • ▼ Show 20 Line(s) | 1388 | } else { | |||
---|---|---|---|---|---|
1389 | edge->updateApproaching(event->globalPos()); | 1389 | edge->updateApproaching(event->globalPos()); | ||
1390 | } | 1390 | } | ||
1391 | } else { | 1391 | } else { | ||
1392 | if (edge->isApproaching()) { | 1392 | if (edge->isApproaching()) { | ||
1393 | edge->stopApproaching(); | 1393 | edge->stopApproaching(); | ||
1394 | } | 1394 | } | ||
1395 | } | 1395 | } | ||
1396 | if (edge->geometry().contains(event->globalPos())) { | 1396 | if (edge->geometry().contains(event->globalPos())) { | ||
1397 | if (edge->check(event->globalPos(), QDateTime::fromMSecsSinceEpoch(event->timestamp()))) { | 1397 | if (edge->check(event->globalPos(), QDateTime::fromMSecsSinceEpoch(event->timestamp(), Qt::UTC))) { | ||
1398 | if (edge->client()) { | 1398 | if (edge->client()) { | ||
1399 | activatedForClient = true; | 1399 | activatedForClient = true; | ||
1400 | } | 1400 | } | ||
1401 | } | 1401 | } | ||
1402 | } | 1402 | } | ||
1403 | } | 1403 | } | ||
1404 | if (activatedForClient) { | 1404 | if (activatedForClient) { | ||
1405 | for (auto it = m_edges.constBegin(); it != m_edges.constEnd(); ++it) { | 1405 | for (auto it = m_edges.constBegin(); it != m_edges.constEnd(); ++it) { | ||
1406 | if ((*it)->client()) { | 1406 | if ((*it)->client()) { | ||
1407 | (*it)->markAsTriggered(event->globalPos(), QDateTime::fromMSecsSinceEpoch(event->timestamp())); | 1407 | (*it)->markAsTriggered(event->globalPos(), QDateTime::fromMSecsSinceEpoch(event->timestamp(), Qt::UTC)); | ||
1408 | } | 1408 | } | ||
1409 | } | 1409 | } | ||
1410 | } | 1410 | } | ||
1411 | return activated; | 1411 | return activated; | ||
1412 | } | 1412 | } | ||
1413 | 1413 | | |||
1414 | bool ScreenEdges::handleEnterNotifiy(xcb_window_t window, const QPoint &point, const QDateTime ×tamp) | 1414 | bool ScreenEdges::handleEnterNotifiy(xcb_window_t window, const QPoint &point, const QDateTime ×tamp) | ||
1415 | { | 1415 | { | ||
Show All 39 Lines | |||||
1455 | { | 1455 | { | ||
1456 | for (auto it = m_edges.begin(); it != m_edges.end(); ++it) { | 1456 | for (auto it = m_edges.begin(); it != m_edges.end(); ++it) { | ||
1457 | Edge *edge = *it; | 1457 | Edge *edge = *it; | ||
1458 | if (!edge || edge->window() == XCB_WINDOW_NONE) { | 1458 | if (!edge || edge->window() == XCB_WINDOW_NONE) { | ||
1459 | continue; | 1459 | continue; | ||
1460 | } | 1460 | } | ||
1461 | if (edge->isReserved() && edge->window() == window) { | 1461 | if (edge->isReserved() && edge->window() == window) { | ||
1462 | updateXTime(); | 1462 | updateXTime(); | ||
1463 | edge->check(point, QDateTime::fromMSecsSinceEpoch(xTime()), true); | 1463 | edge->check(point, QDateTime::fromMSecsSinceEpoch(xTime(), Qt::UTC), true); | ||
1464 | return true; | 1464 | return true; | ||
1465 | } | 1465 | } | ||
1466 | } | 1466 | } | ||
1467 | return false; | 1467 | return false; | ||
1468 | } | 1468 | } | ||
1469 | 1469 | | |||
1470 | void ScreenEdges::ensureOnTop() | 1470 | void ScreenEdges::ensureOnTop() | ||
1471 | { | 1471 | { | ||
Show All 24 Lines |