Reorganize stage in terms of a UI Group actor and everything else

In preparation for adding magnification, "uiGroup.patch", organizes the stage
along the following lines:

Stage
  *Magnifier
  UI group
    Window group
    Chrome group
    Overlay group
    Alt tab
    App display
    Chrome
    ...

This allows a magnifier actor to clone and magnify the UI group.  The magnifier
is a sibling of the UI Group in this stage oraganization -- see the next patch,
"Magnifier.patch".
This commit is contained in:
Joseph Scheuhammer
2010-05-06 17:18:10 -04:00
committed by Colin Walters
parent 37692513cf
commit 62afd2ffa3
9 changed files with 18 additions and 9 deletions

View File

@ -35,7 +35,7 @@ Chrome.prototype = {
_init: function() {
// The group itself has zero size so it doesn't interfere with DND
this.actor = new Shell.GenericContainer({ width: 0, height: 0 });
global.stage.add_actor(this.actor);
Main.uiGroup.add_actor(this.actor);
this.actor.connect('allocate', Lang.bind(this, this._allocated));
this._inFullscreen = false;