Blame SOURCES/0002-background-rebuild-background-not-just-animation-on-.patch

c7fac9
From 2b3f696c8cde01f23bd16b8671de536ae0e001e4 Mon Sep 17 00:00:00 2001
c7fac9
From: Ray Strode <rstrode@redhat.com>
c7fac9
Date: Tue, 15 Jan 2019 12:52:49 -0500
c7fac9
Subject: [PATCH 2/4] background: rebuild background, not just animation on
c7fac9
 resume
c7fac9
c7fac9
Previously, we would only refresh the animation on resume
c7fac9
(to handle clock skew).
c7fac9
c7fac9
But we actually need to rebuild the background, too, on nvidia,
c7fac9
so we should just do a full background change.
c7fac9
---
c7fac9
 js/ui/background.js | 2 +-
c7fac9
 1 file changed, 1 insertion(+), 1 deletion(-)
c7fac9
c7fac9
diff --git a/js/ui/background.js b/js/ui/background.js
c7fac9
index b24f82536..c61d946a4 100644
c7fac9
--- a/js/ui/background.js
c7fac9
+++ b/js/ui/background.js
c7fac9
@@ -237,61 +237,61 @@ var Background = new Lang.Class({
c7fac9
         params = Params.parse(params, { monitorIndex: 0,
c7fac9
                                         layoutManager: Main.layoutManager,
c7fac9
                                         settings: null,
c7fac9
                                         file: null,
c7fac9
                                         style: null });
c7fac9
 
c7fac9
         this.background = new Meta.Background({ meta_screen: global.screen });
c7fac9
         this.background._delegate = this;
c7fac9
 
c7fac9
         this._settings = params.settings;
c7fac9
         this._file = params.file;
c7fac9
         this._style = params.style;
c7fac9
         this._monitorIndex = params.monitorIndex;
c7fac9
         this._layoutManager = params.layoutManager;
c7fac9
         this._fileWatches = {};
c7fac9
         this._cancellable = new Gio.Cancellable();
c7fac9
         this.isLoaded = false;
c7fac9
 
c7fac9
         this._clock = new GnomeDesktop.WallClock();
c7fac9
         this._timezoneChangedId = this._clock.connect('notify::timezone',
c7fac9
             () => {
c7fac9
                 if (this._animation)
c7fac9
                     this._loadAnimation(this._animation.file);
c7fac9
             });
c7fac9
 
c7fac9
         let loginManager = LoginManager.getLoginManager();
c7fac9
         this._prepareForSleepId = loginManager.connect('prepare-for-sleep',
c7fac9
             (lm, aboutToSuspend) => {
c7fac9
                 if (aboutToSuspend)
c7fac9
                     return;
c7fac9
-                this._refreshAnimation();
c7fac9
+                this.emit('changed');
c7fac9
             });
c7fac9
 
c7fac9
         this._settingsChangedSignalId = this._settings.connect('changed', () => {
c7fac9
             this.emit('changed');
c7fac9
         });
c7fac9
 
c7fac9
         this._load();
c7fac9
     },
c7fac9
 
c7fac9
     destroy() {
c7fac9
         this._cancellable.cancel();
c7fac9
         this._removeAnimationTimeout();
c7fac9
 
c7fac9
         let i;
c7fac9
         let keys = Object.keys(this._fileWatches);
c7fac9
         for (i = 0; i < keys.length; i++) {
c7fac9
             this._cache.disconnect(this._fileWatches[keys[i]]);
c7fac9
         }
c7fac9
         this._fileWatches = null;
c7fac9
 
c7fac9
         if (this._timezoneChangedId != 0)
c7fac9
             this._clock.disconnect(this._timezoneChangedId);
c7fac9
         this._timezoneChangedId = 0;
c7fac9
 
c7fac9
         this._clock = null;
c7fac9
 
c7fac9
         if (this._prepareForSleepId != 0)
c7fac9
             LoginManager.getLoginManager().disconnect(this._prepareForSleepId);
c7fac9
         this._prepareForSleepId = 0;
c7fac9
 
c7fac9
-- 
c7fac9
2.18.1
c7fac9