Changeset View
Changeset View
Standalone View
Standalone View
effects/slideback/slideback.cpp
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | |||||
294 | void SlideBackEffect::slotTabBoxClosed() | 294 | void SlideBackEffect::slotTabBoxClosed() | ||
295 | { | 295 | { | ||
296 | m_tabboxActive = qMax(m_tabboxActive-1, 0); | 296 | m_tabboxActive = qMax(m_tabboxActive-1, 0); | ||
297 | } | 297 | } | ||
298 | 298 | | |||
299 | bool SlideBackEffect::isWindowUsable(EffectWindow* w) | 299 | bool SlideBackEffect::isWindowUsable(EffectWindow* w) | ||
300 | { | 300 | { | ||
301 | return w && (w->isNormalWindow() || w->isDialog()) && !w->keepAbove() && !w->isDeleted() && !w->isMinimized() | 301 | return w && (w->isNormalWindow() || w->isDialog()) && !w->keepAbove() && !w->isDeleted() && !w->isMinimized() | ||
302 | && w->isCurrentTab() && w->isPaintingEnabled(); | 302 | && w->isPaintingEnabled(); | ||
303 | } | 303 | } | ||
304 | 304 | | |||
305 | bool SlideBackEffect::intersects(EffectWindow* windowUnder, const QRect &windowOverGeometry) | 305 | bool SlideBackEffect::intersects(EffectWindow* windowUnder, const QRect &windowOverGeometry) | ||
306 | { | 306 | { | ||
307 | QRect windowUnderGeometry = getModalGroupGeometry(windowUnder); | 307 | QRect windowUnderGeometry = getModalGroupGeometry(windowUnder); | ||
308 | return windowUnderGeometry.intersects(windowOverGeometry); | 308 | return windowUnderGeometry.intersects(windowOverGeometry); | ||
309 | } | 309 | } | ||
310 | 310 | | |||
Show All 31 Lines |