mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
Patch-Source: https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/674
|
|
---
|
|
From f7508a0231968565e1d85dd13424d9d8c7048e15 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
|
|
Date: Mon, 31 Mar 2025 19:19:05 +0200
|
|
Subject: [PATCH] xdg-surface: Destroy object when toplevel role goes away
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The xdg-surface might be around for longer
|
|
|
|
Tested-by: anteater
|
|
Closes: https://gitlab.gnome.org/World/Phosh/phoc/-/issues/399
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Part-of: <https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/674>
|
|
---
|
|
src/xdg-surface.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/xdg-surface.c b/src/xdg-surface.c
|
|
index a9e3c2dc7..8f78f45f0 100644
|
|
--- a/src/xdg-surface.c
|
|
+++ b/src/xdg-surface.c
|
|
@@ -646,7 +646,7 @@ phoc_xdg_surface_constructed (GObject *object)
|
|
|
|
/* Register wlr_xdg_surface handlers */
|
|
self->destroy.notify = handle_destroy;
|
|
- wl_signal_add (&self->xdg_surface->events.destroy, &self->destroy);
|
|
+ wl_signal_add (&self->xdg_surface->toplevel->events.destroy, &self->destroy);
|
|
|
|
self->new_popup.notify = handle_new_popup;
|
|
wl_signal_add (&self->xdg_surface->events.new_popup, &self->new_popup);
|
|
--
|
|
GitLab
|
|
|