[mate-window-applets] 02/03: debian/patches: Add 0001-fix-high-memory-consumption.patch. Fix high memory consumption. Cherry-picked from upstream.

Mike Gabriel sunweaver at debian.org
Mon Oct 30 12:51:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-window-applets.

commit e8d3bfd104d871f3a9991f763d90c53303d23dca
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Oct 30 13:39:10 2017 +0100

    debian/patches: Add 0001-fix-high-memory-consumption.patch. Fix high memory consumption. Cherry-picked from upstream.
---
 .../patches/0001-fix-high-memory-consumption.patch | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/0001-fix-high-memory-consumption.patch b/debian/patches/0001-fix-high-memory-consumption.patch
new file mode 100644
index 0000000..e70f62b
--- /dev/null
+++ b/debian/patches/0001-fix-high-memory-consumption.patch
@@ -0,0 +1,36 @@
+From f644246224c964b40f39643642318c0131ce5573 Mon Sep 17 00:00:00 2001
+From: IKRadulov <ivalin1996 at gmail.com>
+Date: Sun, 1 Oct 2017 22:20:19 +0300
+Subject: [PATCH] fix bug in issue #9
+
+---
+ window-buttons-applet/window-buttons-applet.vala | 8 +++++++-
+ 1 files changed, 7 insertions(+), 1 deletions(-)
+
+diff --git a/window-buttons-applet/window-buttons-applet.vala b/window-buttons-applet/window-buttons-applet.vala
+index 9b958b6..9f20fb9 100644
+--- a/window-buttons-applet/window-buttons-applet.vala
++++ b/window-buttons-applet/window-buttons-applet.vala
+@@ -12,6 +12,8 @@ namespace WindowButtonsApplet{
+ 			bool maximize ;
+ 		}
+ 
++		private Wnck.Window* prev_window = null;
++		private Wnck.Window* window = null;
+ 
+ 		public GLib.Settings gsettings = new GLib.Settings("org.mate.window-applets.window-buttons");
+ 		public GLib.Settings marco_gsettings = new GLib.Settings("org.mate.Marco.general");
+@@ -81,8 +83,12 @@ namespace WindowButtonsApplet{
+ 		public void reload(){
+ 			bool control_maximized_window = gsettings.get_boolean("control-maximized-window");
+ 
++			prev_window = window;
++
++			prev_window->actions_changed.disconnect(reload);
++			prev_window->state_changed.disconnect(reload);
+ 			Wnck.Screen.get_default().force_update();
+-			Wnck.Window *window = Wnck.Screen.get_default().get_active_window();
++			window = Wnck.Screen.get_default().get_active_window();
+ 
+ 			if(window != null){
+ 				window->actions_changed.connect(reload);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6cbc4c2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-high-memory-consumption.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-window-applets.git



More information about the pkg-mate-commits mailing list