mate-panel: apply selected fixes from v1.26.3
This commit is contained in:
parent
bf4c2c4bb8
commit
3b79a31e42
5 changed files with 138 additions and 1 deletions
|
|
@ -0,0 +1,25 @@
|
|||
From e1bfb5b674c31e81465fc8307b28abc22260ccd6 Mon Sep 17 00:00:00 2001
|
||||
From: Colomban Wendling <cwendling@hypra.fr>
|
||||
Date: Tue, 28 Jun 2022 11:25:05 +0200
|
||||
Subject: [PATCH] panel-applet: Fix leak in no-background code path
|
||||
|
||||
---
|
||||
libmate-panel-applet/mate-panel-applet.c | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
|
||||
index c08e5cc20..38af2c388 100644
|
||||
--- a/libmate-panel-applet/mate-panel-applet.c
|
||||
+++ b/libmate-panel-applet/mate-panel-applet.c
|
||||
@@ -1625,8 +1625,9 @@ mate_panel_applet_change_background(MatePanelApplet *applet,
|
||||
switch (type) {
|
||||
case PANEL_NO_BACKGROUND:
|
||||
if (priv->out_of_process){
|
||||
- pattern = cairo_pattern_create_rgba (0,0,0,0); /* Using NULL here breaks transparent */
|
||||
- gdk_window_set_background_pattern(window,pattern); /* backgrounds set by GTK theme */
|
||||
+ cairo_pattern_t *transparent = cairo_pattern_create_rgba (0, 0, 0, 0); /* Using NULL here breaks transparent */
|
||||
+ gdk_window_set_background_pattern (window, transparent); /* backgrounds set by GTK theme */
|
||||
+ cairo_pattern_destroy (transparent);
|
||||
}
|
||||
break;
|
||||
case PANEL_COLOR_BACKGROUND:
|
||||
Loading…
Add table
Add a link
Reference in a new issue