Changeset View
Changeset View
Standalone View
Standalone View
toplevel.cpp
Show First 20 Lines • Show All 568 Lines • ▼ Show 20 Line(s) | 568 | { | |||
---|---|---|---|---|---|
569 | return screens()->geometry(screen).intersects(geometry()); | 569 | return screens()->geometry(screen).intersects(geometry()); | ||
570 | } | 570 | } | ||
571 | 571 | | |||
572 | bool Toplevel::isOnActiveScreen() const | 572 | bool Toplevel::isOnActiveScreen() const | ||
573 | { | 573 | { | ||
574 | return isOnScreen(screens()->current()); | 574 | return isOnScreen(screens()->current()); | ||
575 | } | 575 | } | ||
576 | 576 | | |||
577 | void Toplevel::getShadow() | 577 | void Toplevel::updateShadow() | ||
578 | { | 578 | { | ||
579 | QRect dirtyRect; // old & new shadow region | 579 | QRect dirtyRect; // old & new shadow region | ||
580 | const QRect oldVisibleRect = visibleRect(); | 580 | const QRect oldVisibleRect = visibleRect(); | ||
581 | if (shadow()) { | 581 | if (shadow()) { | ||
582 | dirtyRect = shadow()->shadowRegion().boundingRect(); | 582 | dirtyRect = shadow()->shadowRegion().boundingRect(); | ||
583 | if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) { | 583 | if (!effectWindow()->sceneWindow()->shadow()->updateShadow()) { | ||
584 | effectWindow()->sceneWindow()->updateShadow(nullptr); | 584 | effectWindow()->sceneWindow()->updateShadow(nullptr); | ||
585 | } | 585 | } | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |