pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/wm/marco marco: apply an upstream fix for responsivene...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5864480f4288
branches: trunk
changeset: 455771:5864480f4288
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Sun Jul 11 03:32:48 2021 +0000
description:
marco: apply an upstream fix for responsiveness issues
diffstat:
wm/marco/Makefile | 3 +-
wm/marco/distinfo | 3 +-
wm/marco/patches/patch-src_ui_draw-workspace.c | 37 ++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 2 deletions(-)
diffs (69 lines):
diff -r 15a8dc354736 -r 5864480f4288 wm/marco/Makefile
--- a/wm/marco/Makefile Sun Jul 11 00:28:36 2021 +0000
+++ b/wm/marco/Makefile Sun Jul 11 03:32:48 2021 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.29 2021/05/02 10:24:52 nia Exp $
+# $NetBSD: Makefile,v 1.30 2021/07/11 03:32:48 gutteridge Exp $
.include "../../meta-pkgs/mate/Makefile.common"
DISTNAME= marco-${VERSION:R}.2
+PKGREVISION= 1
CATEGORIES= wm
COMMENT= Fork of GNOME Metacity
diff -r 15a8dc354736 -r 5864480f4288 wm/marco/distinfo
--- a/wm/marco/distinfo Sun Jul 11 00:28:36 2021 +0000
+++ b/wm/marco/distinfo Sun Jul 11 03:32:48 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2021/04/29 03:06:02 gutteridge Exp $
+$NetBSD: distinfo,v 1.16 2021/07/11 03:32:48 gutteridge Exp $
SHA1 (marco-1.24.2.tar.xz) = 387a367a11f20b4cc6357aff6154bd654e861f87
RMD160 (marco-1.24.2.tar.xz) = 913782192c1e778c8381ebbf5a3101067cced584
@@ -9,3 +9,4 @@
SHA1 (patch-src_core_keybindings.c) = 98235897926d017994e1fa01c754419d14432b08
SHA1 (patch-src_core_main.c) = 2ca845168633a2856a86453407b3a165f66e8863
SHA1 (patch-src_core_window-props.c) = 23d7c68e3e2c89004c610046378bd855d1d6358a
+SHA1 (patch-src_ui_draw-workspace.c) = e48653b9143e14a3ba9ed2582dee10751db30278
diff -r 15a8dc354736 -r 5864480f4288 wm/marco/patches/patch-src_ui_draw-workspace.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/marco/patches/patch-src_ui_draw-workspace.c Sun Jul 11 03:32:48 2021 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_ui_draw-workspace.c,v 1.1 2021/07/11 03:32:48 gutteridge Exp $
+
+Fix memory leaks that can lead to significant responsiveness issues.
+https://github.com/mate-desktop/marco/commit/76da06f
+https://github.com/mate-desktop/marco/issues/685
+
+--- src/ui/draw-workspace.c.orig 2021-03-23 15:55:18.000000000 +0000
++++ src/ui/draw-workspace.c
+@@ -131,6 +131,7 @@ draw_window (GtkWidget
+ /* If the icon is too big, fall back to mini icon. */
+ if (icon_w > (winrect->width - 2) || icon_h > (winrect->height - 2))
+ {
++ cairo_surface_destroy (icon);
+ icon = gdk_cairo_surface_create_from_pixbuf (win->mini_icon, scale, NULL);
+ if (icon)
+ {
+@@ -139,7 +140,10 @@ draw_window (GtkWidget
+
+ /* Give up. */
+ if (icon_w > (winrect->width - 2) || icon_h > (winrect->height - 2))
+- icon = NULL;
++ {
++ cairo_surface_destroy (icon);
++ icon = NULL;
++ }
+ }
+ }
+ }
+@@ -155,6 +159,8 @@ draw_window (GtkWidget
+ cairo_clip (cr);
+ cairo_paint (cr);
+ cairo_restore (cr);
++
++ cairo_surface_destroy (icon);
+ }
+
+ gtk_style_context_get_color (style, state, &color);
Home |
Main Index |
Thread Index |
Old Index