Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 1089 Lines • ▼ Show 20 Line(s) | 1085 | { | |||
---|---|---|---|---|---|
1090 | if (waylandServer()) { | 1090 | if (waylandServer()) { | ||
1091 | if (AbstractClient *w = waylandServer()->findClient(id)) { | 1091 | if (AbstractClient *w = waylandServer()->findClient(id)) { | ||
1092 | return w->effectWindow(); | 1092 | return w->effectWindow(); | ||
1093 | } | 1093 | } | ||
1094 | } | 1094 | } | ||
1095 | return nullptr; | 1095 | return nullptr; | ||
1096 | } | 1096 | } | ||
1097 | 1097 | | |||
1098 | EffectWindow* EffectsHandlerImpl::findWindow(KWayland::Server::SurfaceInterface *surf) const | 1098 | EffectWindow* EffectsHandlerImpl::findWindow(KWaylandServer::SurfaceInterface *surf) const | ||
1099 | { | 1099 | { | ||
1100 | if (waylandServer()) { | 1100 | if (waylandServer()) { | ||
1101 | if (AbstractClient *w = waylandServer()->findClient(surf)) { | 1101 | if (AbstractClient *w = waylandServer()->findClient(surf)) { | ||
1102 | return w->effectWindow(); | 1102 | return w->effectWindow(); | ||
1103 | } | 1103 | } | ||
1104 | } | 1104 | } | ||
1105 | return nullptr; | 1105 | return nullptr; | ||
1106 | } | 1106 | } | ||
▲ Show 20 Lines • Show All 434 Lines • ▼ Show 20 Line(s) | 1540 | for(QVector< KWin::EffectPair >::const_iterator it = loaded_effects.constBegin(), | |||
1541 | end = loaded_effects.constEnd(); it != end; ++it) { | 1541 | end = loaded_effects.constEnd(); it != end; ++it) { | ||
1542 | if (it->second->isActive()) { | 1542 | if (it->second->isActive()) { | ||
1543 | ret << it->first; | 1543 | ret << it->first; | ||
1544 | } | 1544 | } | ||
1545 | } | 1545 | } | ||
1546 | return ret; | 1546 | return ret; | ||
1547 | } | 1547 | } | ||
1548 | 1548 | | |||
1549 | KWayland::Server::Display *EffectsHandlerImpl::waylandDisplay() const | 1549 | KWaylandServer::Display *EffectsHandlerImpl::waylandDisplay() const | ||
1550 | { | 1550 | { | ||
1551 | if (waylandServer()) { | 1551 | if (waylandServer()) { | ||
1552 | return waylandServer()->display(); | 1552 | return waylandServer()->display(); | ||
1553 | } | 1553 | } | ||
1554 | return nullptr; | 1554 | return nullptr; | ||
1555 | } | 1555 | } | ||
1556 | 1556 | | |||
1557 | EffectFrame* EffectsHandlerImpl::effectFrame(EffectFrameStyle style, bool staticSize, const QPoint& position, Qt::Alignment alignment) const | 1557 | EffectFrame* EffectsHandlerImpl::effectFrame(EffectFrameStyle style, bool staticSize, const QPoint& position, Qt::Alignment alignment) const | ||
▲ Show 20 Lines • Show All 300 Lines • ▼ Show 20 Line(s) | |||||
1858 | TOPLEVEL_HELPER(bool, isOnScreenDisplay, isOnScreenDisplay) | 1858 | TOPLEVEL_HELPER(bool, isOnScreenDisplay, isOnScreenDisplay) | ||
1859 | TOPLEVEL_HELPER(bool, isComboBox, isComboBox) | 1859 | TOPLEVEL_HELPER(bool, isComboBox, isComboBox) | ||
1860 | TOPLEVEL_HELPER(bool, isDNDIcon, isDNDIcon) | 1860 | TOPLEVEL_HELPER(bool, isDNDIcon, isDNDIcon) | ||
1861 | TOPLEVEL_HELPER(bool, isDeleted, isDeleted) | 1861 | TOPLEVEL_HELPER(bool, isDeleted, isDeleted) | ||
1862 | TOPLEVEL_HELPER(bool, hasOwnShape, shape) | 1862 | TOPLEVEL_HELPER(bool, hasOwnShape, shape) | ||
1863 | TOPLEVEL_HELPER(QString, windowRole, windowRole) | 1863 | TOPLEVEL_HELPER(QString, windowRole, windowRole) | ||
1864 | TOPLEVEL_HELPER(QStringList, activities, activities) | 1864 | TOPLEVEL_HELPER(QStringList, activities, activities) | ||
1865 | TOPLEVEL_HELPER(bool, skipsCloseAnimation, skipsCloseAnimation) | 1865 | TOPLEVEL_HELPER(bool, skipsCloseAnimation, skipsCloseAnimation) | ||
1866 | TOPLEVEL_HELPER(KWayland::Server::SurfaceInterface *, surface, surface) | 1866 | TOPLEVEL_HELPER(KWaylandServer::SurfaceInterface *, surface, surface) | ||
1867 | TOPLEVEL_HELPER(bool, isPopupWindow, isPopupWindow) | 1867 | TOPLEVEL_HELPER(bool, isPopupWindow, isPopupWindow) | ||
1868 | TOPLEVEL_HELPER(bool, isOutline, isOutline) | 1868 | TOPLEVEL_HELPER(bool, isOutline, isOutline) | ||
1869 | TOPLEVEL_HELPER(pid_t, pid, pid) | 1869 | TOPLEVEL_HELPER(pid_t, pid, pid) | ||
1870 | 1870 | | |||
1871 | #undef TOPLEVEL_HELPER | 1871 | #undef TOPLEVEL_HELPER | ||
1872 | 1872 | | |||
1873 | #define CLIENT_HELPER_WITH_DELETED( rettype, prototype, propertyname, defaultValue ) \ | 1873 | #define CLIENT_HELPER_WITH_DELETED( rettype, prototype, propertyname, defaultValue ) \ | ||
1874 | rettype EffectWindowImpl::prototype ( ) const \ | 1874 | rettype EffectWindowImpl::prototype ( ) const \ | ||
▲ Show 20 Lines • Show All 547 Lines • Show Last 20 Lines |