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:
parent
ac01a301e0
commit
c48fee7e6a
2 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= hikari
|
||||
DISTVERSION= 2.3.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-wm wayland
|
||||
MASTER_SITES= https://hikari.acmelabs.space/releases/
|
||||
|
||||
|
|
12
x11-wm/hikari/files/patch-src_server.c
Normal file
12
x11-wm/hikari/files/patch-src_server.c
Normal 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 =
|
Loading…
Reference in a new issue