~smspillaz/unity/4.0.fix_881190_918360

Viewing all changes in revision 1733.

  • Committer: smspillaz
  • Date: 2012-01-19 03:30:19 UTC
  • Revision ID: sam.spilsbury@canonical.com-20120119033019-kvbszlur7tr012lm
    Fix LP #881190 and a condition that could happen after: #918360 due to
    a incorrect refcounting.

    The transient for reader would report every window as a "transient" if it
    matched the w->transientFor () definition on the window - at destruction time
    this will be zero, so it will match every single window. That would cause
    all windows to be unminimized.

    However, it makes no sense to do the unminimize/minimize normally dance when
    the window has been destroyed.

    Additionaly, there was a cyclic reference in CompizMinimizedWindowHandler,
    which would cause those objects to never be destroyed. A condition could
    happen where CompizMinimizedWindowHandler could loop its own list and dereference
    a CompWindow that was gone. 

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: