dock: fix showing in overview with gnome-shell master

Chrome module no longer updates the visibility of objects when
the overview is shown or hidden, so we need to do it ourselves.
This commit is contained in:
Giovanni Campagna
2011-06-30 21:52:18 +02:00
parent 18912db64e
commit 939994d07d
+7 -1
View File
@@ -82,7 +82,13 @@ Dock.prototype = {
AppFavorites.getAppFavorites().connect('changed', Lang.bind(this, this._queueRedisplay));
this._tracker.connect('app-state-changed', Lang.bind(this, this._queueRedisplay));
Main.chrome.addActor(this.actor, { visibleInOverview: false });
Main.overview.connect('showing', Lang.bind(this, function() {
this.actor.hide();
}));
Main.overview.connect('hidden', Lang.bind(this, function() {
this.actor.show();
}));
Main.chrome.addActor(this.actor);
this.actor.lower_bottom();
},