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:

committed by
Colin Walters

parent
37692513cf
commit
62afd2ffa3
@ -6,6 +6,7 @@ const St = imports.gi.St;
|
||||
const Lang = imports.lang;
|
||||
const Signals = imports.signals;
|
||||
const Tweener = imports.ui.tweener;
|
||||
const Main = imports.ui.main;
|
||||
|
||||
const Params = imports.misc.params;
|
||||
|
||||
@ -22,7 +23,7 @@ function _getEventHandlerActor() {
|
||||
eventHandlerActor = new Clutter.Rectangle();
|
||||
eventHandlerActor.width = 0;
|
||||
eventHandlerActor.height = 0;
|
||||
global.stage.add_actor(eventHandlerActor);
|
||||
Main.uiGroup.add_actor(eventHandlerActor);
|
||||
// We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
|
||||
// when you've grabbed the pointer.
|
||||
eventHandlerActor.connect('event',
|
||||
|
Reference in New Issue
Block a user