~smspillaz/compiz-core/compiz-core.decor_dont_be_stupid

Viewing all changes in revision 3086.

  • Committer: Daniel van Vugt
  • Author(s): Sam Spilsbury
  • Date: 2012-04-05 05:20:10 UTC
  • mfrom: (3080.2.3 compiz-core.fix_969101)
  • Revision ID: daniel.van.vugt@canonical.com-20120405052010-uzkld6yt6tmgocln
Remove DecorWindow::computeShadowRegion and replace with a smarter class.
(LP: #969101)

DecorClipGroup (split into GenericDecorClipGroup and MatchedDecorClipGroup)
take a DecorClippableInterface which where entry and exit from the group is
guarded by the implementation and are treated as one layer for the purposes
of shadowing - eg the input region of each member of the clip group will clip
all of the shadows of the members, so that none of the members appear to be
overlapping.

This algorithm is a lot more optimized in that the shadows are only updated
when relevant windows are updated.

Tested too.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: