~compiz-team/compiz/compiz.fix_1088399

« back to all changes in this revision

Viewing changes to src/window.cpp

  • Committer: Sam Spilsbury
  • Date: 2012-12-10 12:29:06 UTC
  • Revision ID: sam.spilsbury@canonical.com-20121210122906-uzbht3ydng824cou
Added test case for restacking relative to destroyed windows.

Under TDD methodology, this should be a failing test, however it isn't,
because (LP: #1088399) is a race condition between when we receive
MapRequest for a client and map the window and then later between that, destroy
it and receive a CreateNotify for a new window on top of it, and restack
the new window on top of the not-yet-mapped, but-also-destroyed window

Show diffs side-by-side

added added

removed removed

Lines of Context:
4241
4241
 
4242
4242
        sibling = PrivateWindow::findSiblingBelow (this, aboveFs);
4243
4243
 
 
4244
        if (sibling)
 
4245
        printf ("sibling for 0x%x 0x%x\n", (unsigned int) priv->id, (unsigned int) sibling->priv->id);
 
4246
 
4244
4247
        if (sibling &&
4245
4248
            (stackingMode == CompStackingUpdateModeInitialMapDeniedFocus))
4246
4249
        {