Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 1255 Lines • ▼ Show 20 Line(s) | |||||
1256 | } | 1256 | } | ||
1257 | 1257 | | |||
1258 | QRect EffectsHandlerImpl::clientArea(clientAreaOption opt, const EffectWindow* c) const | 1258 | QRect EffectsHandlerImpl::clientArea(clientAreaOption opt, const EffectWindow* c) const | ||
1259 | { | 1259 | { | ||
1260 | const Toplevel* t = static_cast< const EffectWindowImpl* >(c)->window(); | 1260 | const Toplevel* t = static_cast< const EffectWindowImpl* >(c)->window(); | ||
1261 | if (const auto *cl = qobject_cast<const AbstractClient *>(t)) { | 1261 | if (const auto *cl = qobject_cast<const AbstractClient *>(t)) { | ||
1262 | return Workspace::self()->clientArea(opt, cl); | 1262 | return Workspace::self()->clientArea(opt, cl); | ||
1263 | } else { | 1263 | } else { | ||
1264 | return Workspace::self()->clientArea(opt, t->geometry().center(), VirtualDesktopManager::self()->current()); | 1264 | return Workspace::self()->clientArea(opt, t->frameGeometry().center(), VirtualDesktopManager::self()->current()); | ||
1265 | } | 1265 | } | ||
1266 | } | 1266 | } | ||
1267 | 1267 | | |||
1268 | QRect EffectsHandlerImpl::clientArea(clientAreaOption opt, const QPoint& p, int desktop) const | 1268 | QRect EffectsHandlerImpl::clientArea(clientAreaOption opt, const QPoint& p, int desktop) const | ||
1269 | { | 1269 | { | ||
1270 | return Workspace::self()->clientArea(opt, p, desktop); | 1270 | return Workspace::self()->clientArea(opt, p, desktop); | ||
1271 | } | 1271 | } | ||
1272 | 1272 | | |||
▲ Show 20 Lines • Show All 542 Lines • ▼ Show 20 Line(s) | |||||
1815 | TOPLEVEL_HELPER(bool, hasAlpha, hasAlpha) | 1815 | TOPLEVEL_HELPER(bool, hasAlpha, hasAlpha) | ||
1816 | TOPLEVEL_HELPER(int, x, x) | 1816 | TOPLEVEL_HELPER(int, x, x) | ||
1817 | TOPLEVEL_HELPER(int, y, y) | 1817 | TOPLEVEL_HELPER(int, y, y) | ||
1818 | TOPLEVEL_HELPER(int, width, width) | 1818 | TOPLEVEL_HELPER(int, width, width) | ||
1819 | TOPLEVEL_HELPER(int, height, height) | 1819 | TOPLEVEL_HELPER(int, height, height) | ||
1820 | TOPLEVEL_HELPER(QPoint, pos, pos) | 1820 | TOPLEVEL_HELPER(QPoint, pos, pos) | ||
1821 | TOPLEVEL_HELPER(QSize, size, size) | 1821 | TOPLEVEL_HELPER(QSize, size, size) | ||
1822 | TOPLEVEL_HELPER(int, screen, screen) | 1822 | TOPLEVEL_HELPER(int, screen, screen) | ||
1823 | TOPLEVEL_HELPER(QRect, geometry, geometry) | 1823 | TOPLEVEL_HELPER(QRect, geometry, frameGeometry) | ||
1824 | TOPLEVEL_HELPER(QRect, expandedGeometry, visibleRect) | 1824 | TOPLEVEL_HELPER(QRect, expandedGeometry, visibleRect) | ||
1825 | TOPLEVEL_HELPER(QRect, rect, rect) | 1825 | TOPLEVEL_HELPER(QRect, rect, rect) | ||
1826 | TOPLEVEL_HELPER(int, desktop, desktop) | 1826 | TOPLEVEL_HELPER(int, desktop, desktop) | ||
1827 | TOPLEVEL_HELPER(bool, isDesktop, isDesktop) | 1827 | TOPLEVEL_HELPER(bool, isDesktop, isDesktop) | ||
1828 | TOPLEVEL_HELPER(bool, isDock, isDock) | 1828 | TOPLEVEL_HELPER(bool, isDock, isDock) | ||
1829 | TOPLEVEL_HELPER(bool, isToolbar, isToolbar) | 1829 | TOPLEVEL_HELPER(bool, isToolbar, isToolbar) | ||
1830 | TOPLEVEL_HELPER(bool, isMenu, isMenu) | 1830 | TOPLEVEL_HELPER(bool, isMenu, isMenu) | ||
1831 | TOPLEVEL_HELPER(bool, isNormalWindow, isNormalWindow) | 1831 | TOPLEVEL_HELPER(bool, isNormalWindow, isNormalWindow) | ||
▲ Show 20 Lines • Show All 569 Lines • Show Last 20 Lines |