Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.cpp
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | |||||
125 | void PointerInputRedirection::init() | 125 | void PointerInputRedirection::init() | ||
126 | { | 126 | { | ||
127 | Q_ASSERT(!m_inited); | 127 | Q_ASSERT(!m_inited); | ||
128 | m_cursor = new CursorImage(this); | 128 | m_cursor = new CursorImage(this); | ||
129 | m_inited = true; | 129 | m_inited = true; | ||
130 | connect(m_cursor, &CursorImage::changed, kwinApp()->platform(), &Platform::cursorChanged); | 130 | connect(m_cursor, &CursorImage::changed, kwinApp()->platform(), &Platform::cursorChanged); | ||
131 | emit m_cursor->changed(); | 131 | emit m_cursor->changed(); | ||
132 | connect(workspace(), &Workspace::stackingOrderChanged, this, &PointerInputRedirection::update); | 132 | connect(workspace(), &Workspace::stackingOrderChanged, this, &PointerInputRedirection::update); | ||
133 | connect(workspace(), &Workspace::clientMinimizedChanged, this, &PointerInputRedirection::update); | ||||
133 | connect(screens(), &Screens::changed, this, &PointerInputRedirection::updateAfterScreenChange); | 134 | connect(screens(), &Screens::changed, this, &PointerInputRedirection::updateAfterScreenChange); | ||
134 | if (waylandServer()->hasScreenLockerIntegration()) { | 135 | if (waylandServer()->hasScreenLockerIntegration()) { | ||
135 | connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged, this, | 136 | connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged, this, | ||
136 | [this] { | 137 | [this] { | ||
137 | waylandServer()->seat()->cancelPointerPinchGesture(); | 138 | waylandServer()->seat()->cancelPointerPinchGesture(); | ||
138 | waylandServer()->seat()->cancelPointerSwipeGesture(); | 139 | waylandServer()->seat()->cancelPointerSwipeGesture(); | ||
139 | update(); | 140 | update(); | ||
140 | } | 141 | } | ||
▲ Show 20 Lines • Show All 1142 Lines • Show Last 20 Lines |