~unity-team/compiz-core/core.fix_events_going_to_frames

« back to all changes in this revision

Viewing changes to src/screen.cpp

  • Committer: Sam Spilsbury
  • Date: 2011-04-30 14:07:20 UTC
  • Revision ID: git-v1:74e8e9698d8851cfb40c81bd0648dcb56032e34c
Track windows on CreateNotify again, don't rely on trying to beat the race
condition by putting that on MapRequest, instead check at reparent time
if the window has already been reparented server-side and don't reparent it
again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4632
4632
        if (!XGetWindowAttributes (screen->dpy (), children[i], &attrib))
4633
4633
            priv->setDefaultWindowAttributes (&attrib);
4634
4634
 
4635
 
        CoreWindow *cw = new CoreWindow (children[i]);
 
4635
        CoreWindow *cw = new CoreWindow (children[i]);
 
4636
        cw->manage (i ? children[i - 1] : 0, attrib);
4636
4637
 
4637
 
        if (cw)
4638
 
        {
4639
 
            cw->manage (i ? children[i - 1] : 0, attrib);
4640
 
            delete cw;
4641
 
        }
 
4638
        priv->createdWindows.remove (cw);
 
4639
        delete cw;
4642
4640
    }
4643
4641
 
4644
4642
    i = 0;