Changeset View
Changeset View
Standalone View
Standalone View
screenedge.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | 179 | { | |||
---|---|---|---|---|---|
192 | return false; | 192 | return false; | ||
193 | } | 193 | } | ||
194 | 194 | | |||
195 | bool Edge::activatesForTouchGesture() const | 195 | bool Edge::activatesForTouchGesture() const | ||
196 | { | 196 | { | ||
197 | if (!isScreenEdge()) { | 197 | if (!isScreenEdge()) { | ||
198 | return false; | 198 | return false; | ||
199 | } | 199 | } | ||
200 | if (m_blocked) { | ||||
201 | return false; | ||||
202 | } | ||||
200 | if (m_client) { | 203 | if (m_client) { | ||
201 | return true; | 204 | return true; | ||
202 | } | 205 | } | ||
203 | if (m_touchAction != ElectricActionNone) { | 206 | if (m_touchAction != ElectricActionNone) { | ||
204 | return true; | 207 | return true; | ||
205 | } | 208 | } | ||
206 | if (!m_touchActions.isEmpty()) { | 209 | if (!m_touchActions.isEmpty()) { | ||
207 | return true; | 210 | return true; | ||
▲ Show 20 Lines • Show All 325 Lines • ▼ Show 20 Line(s) | 533 | { | |||
533 | } | 536 | } | ||
534 | bool newValue = false; | 537 | bool newValue = false; | ||
535 | if (AbstractClient *client = Workspace::self()->activeClient()) { | 538 | if (AbstractClient *client = Workspace::self()->activeClient()) { | ||
536 | newValue = client->isFullScreen() && client->geometry().contains(m_geometry.center()); | 539 | newValue = client->isFullScreen() && client->geometry().contains(m_geometry.center()); | ||
537 | } | 540 | } | ||
538 | if (newValue == m_blocked) { | 541 | if (newValue == m_blocked) { | ||
539 | return; | 542 | return; | ||
540 | } | 543 | } | ||
544 | const bool wasTouch = activatesForTouchGesture(); | ||||
541 | m_blocked = newValue; | 545 | m_blocked = newValue; | ||
546 | if (wasTouch != activatesForTouchGesture()) { | ||||
547 | emit activatesForTouchGestureChanged(); | ||||
548 | } | ||||
542 | doUpdateBlocking(); | 549 | doUpdateBlocking(); | ||
543 | } | 550 | } | ||
544 | 551 | | |||
545 | void Edge::doUpdateBlocking() | 552 | void Edge::doUpdateBlocking() | ||
546 | { | 553 | { | ||
547 | } | 554 | } | ||
548 | 555 | | |||
549 | void Edge::doGeometryUpdate() | 556 | void Edge::doGeometryUpdate() | ||
▲ Show 20 Lines • Show All 952 Lines • Show Last 20 Lines |