overview: Fix DESKTOP clone position
The DESKTOP window might not be located at (0,0), in particular on multi-monitor setups. While we already consider this by setting the clone's position, we then stuff the clone into a container which ignores it - meh ... https://bugzilla.gnome.org/show_bug.cgi?id=723306
This commit is contained in:
parent
ac22172a6e
commit
b97f3a9ecf
@ -131,7 +131,7 @@ const Overview = new Lang.Class({
|
||||
Main.layoutManager.overviewGroup.add_child(this._backgroundGroup);
|
||||
this._bgManagers = [];
|
||||
|
||||
this._desktopFade = new St.Bin();
|
||||
this._desktopFade = new St.Widget();
|
||||
Main.layoutManager.overviewGroup.add_child(this._desktopFade);
|
||||
|
||||
this._activationTime = 0;
|
||||
@ -493,8 +493,8 @@ const Overview = new Lang.Class({
|
||||
},
|
||||
|
||||
fadeOutDesktop: function() {
|
||||
if (!this._desktopFade.child)
|
||||
this._desktopFade.child = this._getDesktopClone();
|
||||
if (!this._desktopFade.get_n_children())
|
||||
this._desktopFade.add_child(this._getDesktopClone());
|
||||
|
||||
this._desktopFade.opacity = 255;
|
||||
this._desktopFade.show();
|
||||
|
Loading…
Reference in New Issue
Block a user