layout: Clip the window group when doing the startup animation

This ensures that when we have windows that are already visible,
like desktop icons, they don't fly across the screen from what
seems to be hyperspace to get into view.

https://bugzilla.gnome.org/show_bug.cgi?id=696323
This commit is contained in:
Jasper St. Pierre 2013-03-19 20:16:54 -04:00
parent 965dd2ab67
commit d61fe357f6

View File

@ -578,6 +578,7 @@ const LayoutManager = new Lang.Class({
y / global.screen_height); y / global.screen_height);
this.uiGroup.scale_x = this.uiGroup.scale_y = 0.5; this.uiGroup.scale_x = this.uiGroup.scale_y = 0.5;
this.uiGroup.opacity = 0; this.uiGroup.opacity = 0;
global.window_group.set_clip(monitor.x, monitor.y, monitor.width, monitor.height);
} }
this._systemBackground = new Background.SystemBackground(); this._systemBackground = new Background.SystemBackground();
@ -654,8 +655,10 @@ const LayoutManager = new Lang.Class({
this.trayBox.show(); this.trayBox.show();
this.keyboardBox.show(); this.keyboardBox.show();
if (!Main.sessionMode.isGreeter) if (!Main.sessionMode.isGreeter) {
this._createSecondaryBackgrounds(); this._createSecondaryBackgrounds();
global.window_group.remove_clip();
}
this._queueUpdateRegions(); this._queueUpdateRegions();