Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Show First 20 Lines • Show All 640 Lines • ▼ Show 20 Line(s) | 640 | } else { | |||
---|---|---|---|---|---|
641 | // mouse is hovering above desktop - use MouseActionsDesktop | 641 | // mouse is hovering above desktop - use MouseActionsDesktop | ||
642 | mouseActionDesktop(m_rightButtonDesktop); | 642 | mouseActionDesktop(m_rightButtonDesktop); | ||
643 | } | 643 | } | ||
644 | } | 644 | } | ||
645 | } else if (highlightCandidate && !m_motionManager.areWindowsMoving()) | 645 | } else if (highlightCandidate && !m_motionManager.areWindowsMoving()) | ||
646 | setHighlightedWindow(highlightCandidate); | 646 | setHighlightedWindow(highlightCandidate); | ||
647 | } | 647 | } | ||
648 | 648 | | |||
649 | bool PresentWindowsEffect::touchDown(quint32 id, const QPointF &pos, quint32 time) | 649 | bool PresentWindowsEffect::touchDown(qint32 id, const QPointF &pos, quint32 time) | ||
650 | { | 650 | { | ||
651 | Q_UNUSED(time) | 651 | Q_UNUSED(time) | ||
652 | if (!m_activated) { | 652 | if (!m_activated) { | ||
653 | return false; | 653 | return false; | ||
654 | } | 654 | } | ||
655 | // only if we don't track a touch id yet | 655 | // only if we don't track a touch id yet | ||
656 | if (!m_touch.active) { | 656 | if (!m_touch.active) { | ||
657 | m_touch.active = true; | 657 | m_touch.active = true; | ||
658 | m_touch.id = id; | 658 | m_touch.id = id; | ||
659 | inputEventUpdate(pos.toPoint()); | 659 | inputEventUpdate(pos.toPoint()); | ||
660 | } | 660 | } | ||
661 | return true; | 661 | return true; | ||
662 | } | 662 | } | ||
663 | 663 | | |||
664 | bool PresentWindowsEffect::touchMotion(quint32 id, const QPointF &pos, quint32 time) | 664 | bool PresentWindowsEffect::touchMotion(qint32 id, const QPointF &pos, quint32 time) | ||
665 | { | 665 | { | ||
666 | Q_UNUSED(id) | 666 | Q_UNUSED(id) | ||
667 | Q_UNUSED(time) | 667 | Q_UNUSED(time) | ||
668 | if (!m_activated) { | 668 | if (!m_activated) { | ||
669 | return false; | 669 | return false; | ||
670 | } | 670 | } | ||
671 | if (m_touch.active && m_touch.id == id) { | 671 | if (m_touch.active && m_touch.id == id) { | ||
672 | // only update for the touch id we track | 672 | // only update for the touch id we track | ||
673 | inputEventUpdate(pos.toPoint()); | 673 | inputEventUpdate(pos.toPoint()); | ||
674 | } | 674 | } | ||
675 | return true; | 675 | return true; | ||
676 | } | 676 | } | ||
677 | 677 | | |||
678 | bool PresentWindowsEffect::touchUp(quint32 id, quint32 time) | 678 | bool PresentWindowsEffect::touchUp(qint32 id, quint32 time) | ||
679 | { | 679 | { | ||
680 | Q_UNUSED(id) | 680 | Q_UNUSED(id) | ||
681 | Q_UNUSED(time) | 681 | Q_UNUSED(time) | ||
682 | if (!m_activated) { | 682 | if (!m_activated) { | ||
683 | return false; | 683 | return false; | ||
684 | } | 684 | } | ||
685 | if (m_touch.active && m_touch.id == id) { | 685 | if (m_touch.active && m_touch.id == id) { | ||
686 | m_touch.active = false; | 686 | m_touch.active = false; | ||
▲ Show 20 Lines • Show All 1390 Lines • Show Last 20 Lines |