Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid.cpp
Show First 20 Lines • Show All 1386 Lines • ▼ Show 20 Line(s) | |||||
1387 | 1387 | | |||
1388 | bool DesktopGridEffect::isActive() const | 1388 | bool DesktopGridEffect::isActive() const | ||
1389 | { | 1389 | { | ||
1390 | return (timeline.currentValue() != 0 || activated || (isUsingPresentWindows() && isMotionManagerMovingWindows())) && !effects->isScreenLocked(); | 1390 | return (timeline.currentValue() != 0 || activated || (isUsingPresentWindows() && isMotionManagerMovingWindows())) && !effects->isScreenLocked(); | ||
1391 | } | 1391 | } | ||
1392 | 1392 | | |||
1393 | bool DesktopGridEffect::isRelevantWithPresentWindows(EffectWindow *w) const | 1393 | bool DesktopGridEffect::isRelevantWithPresentWindows(EffectWindow *w) const | ||
1394 | { | 1394 | { | ||
1395 | return !(w->isDesktop() || w->isDock() || w->isSkipSwitcher() || w->isOnScreenDisplay()) && | 1395 | if (w->isSpecialWindow() || w->isUtility()) { | ||
1396 | w->isCurrentTab() && w->isOnCurrentActivity(); | 1396 | return false; | ||
1397 | } | ||||
1398 | | ||||
1399 | if (w->isSkipSwitcher()) { | ||||
1400 | return false; | ||||
1401 | } | ||||
1402 | | ||||
1403 | if (w->isDeleted()) { | ||||
1404 | return false; | ||||
1405 | } | ||||
1406 | | ||||
1407 | if (!w->acceptsFocus()) { | ||||
1408 | return false; | ||||
1409 | } | ||||
1410 | | ||||
1411 | if (!w->isCurrentTab()) { | ||||
1412 | return false; | ||||
1413 | } | ||||
1414 | | ||||
1415 | if (!w->isOnCurrentActivity()) { | ||||
1416 | return false; | ||||
1417 | } | ||||
1418 | | ||||
1419 | return true; | ||||
1397 | } | 1420 | } | ||
1398 | 1421 | | |||
1399 | /************************************************ | 1422 | /************************************************ | ||
1400 | * DesktopButtonView | 1423 | * DesktopButtonView | ||
1401 | ************************************************/ | 1424 | ************************************************/ | ||
1402 | DesktopButtonsView::DesktopButtonsView(QWindow *parent) | 1425 | DesktopButtonsView::DesktopButtonsView(QWindow *parent) | ||
1403 | : QQuickView(parent) | 1426 | : QQuickView(parent) | ||
1404 | , effectWindow(nullptr) | 1427 | , effectWindow(nullptr) | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |