lightbox: Remove unnecessary params
Actors have a default origin of (0, 0), so there's no need of setting those explicitly. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/651
This commit is contained in:
parent
3a748fe737
commit
82d466598c
@ -100,13 +100,9 @@ var Lightbox = class Lightbox {
|
|||||||
this._fadeFactor = params.fadeFactor;
|
this._fadeFactor = params.fadeFactor;
|
||||||
this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect;
|
this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect;
|
||||||
if (this._radialEffect)
|
if (this._radialEffect)
|
||||||
this.actor = new RadialShaderQuad({ x: 0,
|
this.actor = new RadialShaderQuad({ reactive: params.inhibitEvents });
|
||||||
y: 0,
|
|
||||||
reactive: params.inhibitEvents });
|
|
||||||
else
|
else
|
||||||
this.actor = new St.Bin({ x: 0,
|
this.actor = new St.Bin({ opacity: 0,
|
||||||
y: 0,
|
|
||||||
opacity: 0,
|
|
||||||
style_class: 'lightbox',
|
style_class: 'lightbox',
|
||||||
reactive: params.inhibitEvents });
|
reactive: params.inhibitEvents });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user