[gnome-shell/wip/fmuellner/ease-actors: 1040/1052] windowManager: Small cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/ease-actors: 1040/1052] windowManager: Small cleanup
- Date: Tue, 6 Aug 2019 02:17:24 +0000 (UTC)
commit 6033df3699b7d76e96152ae1d47e6cde3c959c7a
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]