Hide the group containing the windows while overlay is up
When we are animating the overlay, we don't want to be continually redrawing the (obscured) window actors. src/shell-global.c: Add 'window-group' property to expose the group holding the window actors. js/ui/overlay.js: Hide the window group while the overlay is up. svn path=/trunk/; revision=39
This commit is contained in:
@ -103,13 +103,24 @@ Overlay.prototype = {
|
||||
window_index++;
|
||||
}
|
||||
|
||||
// All the the actors in the window group are completely obscured,
|
||||
// hiding the group holding them while the overlay is displayed greatly
|
||||
// increases performance of the overlay especially when there are many
|
||||
// windows visible.
|
||||
//
|
||||
// If we switched to displaying the actors in the overlay rather than
|
||||
// clones of them, this would obviously no longer be necessary.
|
||||
global.window_group.hide()
|
||||
this._group.show();
|
||||
}
|
||||
},
|
||||
|
||||
hide : function() {
|
||||
if (this.visible) {
|
||||
let global = Shell.global_get();
|
||||
|
||||
this.visible = false;
|
||||
global.window_group.show()
|
||||
this._group.hide();
|
||||
|
||||
for (let i = 0; i < this._window_clones.length; i++) {
|
||||
|
Reference in New Issue
Block a user