Remove unused tracking of visibility in Chrome
https://bugzilla.gnome.org/show_bug.cgi?id=642881
This commit is contained in:
parent
e3511127c7
commit
60ae784c01
@ -13,12 +13,6 @@ const Params = imports.misc.params;
|
|||||||
// normal mode (ie, outside the Overview), that surrounds the main
|
// normal mode (ie, outside the Overview), that surrounds the main
|
||||||
// workspace content.
|
// workspace content.
|
||||||
|
|
||||||
const Visibility = {
|
|
||||||
FULL: 1,
|
|
||||||
FULLSCREEN: 2,
|
|
||||||
OVERVIEW: 3
|
|
||||||
};
|
|
||||||
|
|
||||||
const defaultParams = {
|
const defaultParams = {
|
||||||
visibleInOverview: false,
|
visibleInOverview: false,
|
||||||
visibleInFullscreen: false,
|
visibleInFullscreen: false,
|
||||||
@ -39,7 +33,6 @@ Chrome.prototype = {
|
|||||||
|
|
||||||
this._inFullscreen = false;
|
this._inFullscreen = false;
|
||||||
this._inOverview = false;
|
this._inOverview = false;
|
||||||
this.visibility = Visibility.FULL;
|
|
||||||
|
|
||||||
this._trackedActors = [];
|
this._trackedActors = [];
|
||||||
|
|
||||||
@ -199,19 +192,6 @@ Chrome.prototype = {
|
|||||||
else
|
else
|
||||||
this.actor.set_skip_paint(actorData.actor, false);
|
this.actor.set_skip_paint(actorData.actor, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
let newVisibility;
|
|
||||||
if (this._inOverview)
|
|
||||||
newVisibility = Visibility.OVERVIEW;
|
|
||||||
else if (this._inFullscreen)
|
|
||||||
newVisibility = Visibility.FULLSCREEN;
|
|
||||||
else
|
|
||||||
newVisibility = Visibility.FULL;
|
|
||||||
|
|
||||||
if (newVisibility != this.visibility) {
|
|
||||||
this.visibility = newVisibility;
|
|
||||||
this.emit('visibility-changed', this.visibility);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_overviewShowing: function() {
|
_overviewShowing: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user