[gnome-shell] windowManager: Small cleanup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] windowManager: Small cleanup
- Date: Tue, 6 Aug 2019 13:02:26 +0000 (UTC)
commit 1abfbb82c5b3c6fc3cad104059a4c122bbf6db60
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Jul 22 03:31:54 2018 +0200
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
js/ui/windowManager.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 44774f095..04046b131 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]