x11-wm/hikari: Patch to prevent crashing with GTK4 apps

PR:		265110
Reported by:	Ahmad Raniri <ahmadraniri1994 at gmail dot com>
Tested by:	Ahmad Raniri <ahmadraniri1994 at gmail dot com>
Obtained from:	alex at xanderio dot de
MFH:		2022Q3 (bug fix)
This commit is contained in:
Ashish SHUKLA 2022-07-10 13:53:29 +00:00
parent ac01a301e0
commit c48fee7e6a
No known key found for this signature in database
GPG key ID: C746CFA9E74FA4B0
2 changed files with 13 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= hikari
DISTVERSION= 2.3.3
PORTREVISION= 1
CATEGORIES= x11-wm wayland
MASTER_SITES= https://hikari.acmelabs.space/releases/

View file

@ -0,0 +1,12 @@
--- src/server.c.orig 2022-01-13 09:15:55 UTC
+++ src/server.c
@@ -523,6 +523,9 @@ static void
server_decoration_handler(struct wl_listener *listener, void *data)
{
struct wlr_server_decoration *wlr_decoration = data;
+ if (wlr_decoration->surface->role == NULL) {
+ return;
+ }
struct hikari_view *view =
wl_container_of(wlr_decoration->surface, view, surface);
struct wlr_xdg_surface *xdg_surface =