diff mbox series

[meta-xfce,1/2] xfce4-pulseaudio-plugin: Fix build with libwindowing 4.19.6

Message ID 20241220063949.3205273-1-raj.khem@gmail.com
State New
Headers show
Series [meta-xfce,1/2] xfce4-pulseaudio-plugin: Fix build with libwindowing 4.19.6 | expand

Commit Message

Khem Raj Dec. 20, 2024, 6:39 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...ow_activate-signature-in-libwindowin.patch | 25 +++++++++++++++++++
 .../xfce4-pulseaudio-plugin_0.4.8.bb          |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin/0001-Use-new-xfw_window_activate-signature-in-libwindowin.patch
diff mbox series

Patch

diff --git a/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin/0001-Use-new-xfw_window_activate-signature-in-libwindowin.patch b/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin/0001-Use-new-xfw_window_activate-signature-in-libwindowin.patch
new file mode 100644
index 0000000000..301cda7246
--- /dev/null
+++ b/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin/0001-Use-new-xfw_window_activate-signature-in-libwindowin.patch
@@ -0,0 +1,25 @@ 
+From 37d718444bc7e6039fb6abf2360b032a91ddc512 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
+Date: Mon, 7 Oct 2024 09:57:59 +0200
+Subject: [PATCH] Use new xfw_window_activate() signature in libwindowing
+ 4.19.6
+
+Upstream-Status: Backport [https://gitlab.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/-/merge_requests/63]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ panel-plugin/pulseaudio-mpris-player.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/panel-plugin/pulseaudio-mpris-player.c b/panel-plugin/pulseaudio-mpris-player.c
+index 1694b3f..b4582c5 100644
+--- a/panel-plugin/pulseaudio-mpris-player.c
++++ b/panel-plugin/pulseaudio-mpris-player.c
+@@ -291,7 +291,7 @@ pulseaudio_mpris_player_raise_wnck (PulseaudioMprisPlayer *player)
+     {
+       if (g_strcmp0 (player->player_label, xfw_window_get_name (lp->data)) == 0)
+         {
+-          xfw_window_activate (lp->data, g_get_monotonic_time () / 1000, NULL);
++          xfw_window_activate (lp->data, NULL, g_get_monotonic_time () / 1000, NULL);
+           break;
+         }
+     }
diff --git a/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin_0.4.8.bb b/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin_0.4.8.bb
index c01b4966f0..2cb33604c7 100644
--- a/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin_0.4.8.bb
+++ b/meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin_0.4.8.bb
@@ -8,6 +8,7 @@  REQUIRED_DISTRO_FEATURES = "pulseaudio x11"
 
 DEPENDS += "dbus-glib pulseaudio"
 
+SRC_URI += "file://0001-Use-new-xfw_window_activate-signature-in-libwindowin.patch"
 SRC_URI[sha256sum] = "bd742b207c39c221e91c57c9c9be2839eb802d1b1ee01a02b7427cd02d3f0348"
 
 PACKAGECONFIG ??= "libnotify"