windowManager: Small cleanup
We start with a dim factor of 0, so the syncEnabled() call in the constructor will always disable the effect. Just create the effect disabled and save the method call. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
This commit is contained in:
parent
bf36d99a33
commit
1abfbb82c5
@ -117,12 +117,13 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
|
||||
|
||||
var WindowDimmer = class {
|
||||
constructor(actor) {
|
||||
this._brightnessEffect = new Clutter.BrightnessContrastEffect();
|
||||
this._brightnessEffect = new Clutter.BrightnessContrastEffect({
|
||||
enabled: false
|
||||
});
|
||||
actor.add_effect(this._brightnessEffect);
|
||||
this.actor = actor;
|
||||
this._enabled = true;
|
||||
this._dimFactor = 0.0;
|
||||
this._syncEnabled();
|
||||
}
|
||||
|
||||
_syncEnabled() {
|
||||
|
Loading…
Reference in New Issue
Block a user