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