void LipstickCompositorWindow::itemChange(ItemChange change, const ItemChangeData &data) { if (change == ItemSceneChange) { handleTouchCancel(); } QWaylandSurfaceItem::itemChange(change, data); }
LipstickCompositorWindow::LipstickCompositorWindow(int windowId, const QString &category, QWaylandSurface *surface, QQuickItem *parent) : QWaylandSurfaceItem(surface, parent), m_windowId(windowId), m_category(category), m_ref(0), m_delayRemove(false), m_windowClosed(false), m_removePosted(false), m_mouseRegionValid(false) { setFlags(QQuickItem::ItemIsFocusScope | flags()); refreshMouseRegion(); // Handle ungrab situations connect(this, SIGNAL(visibleChanged()), SLOT(handleTouchCancel())); connect(this, SIGNAL(enabledChanged()), SLOT(handleTouchCancel())); connect(this, SIGNAL(touchEventsEnabledChanged()), SLOT(handleTouchCancel())); connect(this, SIGNAL(surfaceChanged()), SLOT(connectSurfaceSignals())); connectSurfaceSignals(); }
LipstickCompositorWindow::LipstickCompositorWindow(int windowId, const QString &category, QWaylandQuickSurface *surface, QQuickItem *parent) : QWaylandSurfaceItem(surface, parent), m_windowId(windowId), m_category(category), m_delayRemove(false), m_windowClosed(false), m_removePosted(false), m_mouseRegionValid(false), m_interceptingTouch(false), m_mapped(false), m_noHardwareComposition(false), m_focusOnTouch(false) { setFlags(QQuickItem::ItemIsFocusScope | flags()); refreshMouseRegion(); // Handle ungrab situations connect(this, SIGNAL(visibleChanged()), SLOT(handleTouchCancel())); connect(this, SIGNAL(enabledChanged()), SLOT(handleTouchCancel())); connect(this, SIGNAL(touchEventsEnabledChanged()), SLOT(handleTouchCancel())); connect(this, &QWaylandSurfaceItem::surfaceDestroyed, this, &QObject::deleteLater); connectSurfaceSignals(); }