From dfe61fe77de390e60247dc9729020632d69334eb Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 6 Jul 2020 16:10:59 +0200 Subject: [PATCH] xwayland: don't crash on null title --- river/XwaylandView.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/river/XwaylandView.zig b/river/XwaylandView.zig index a18a105..6b54e26 100644 --- a/river/XwaylandView.zig +++ b/river/XwaylandView.zig @@ -115,7 +115,7 @@ pub fn surfaceAt(self: Self, ox: f64, oy: f64, sx: *f64, sy: *f64) ?*c.wlr_surfa /// Get the current title of the xwayland surface. May be an empty string pub fn getTitle(self: Self) [*:0]const u8 { - return self.wlr_xwayland_surface.title; + return self.wlr_xwayland_surface.title orelse ""; } /// Called when the xwayland surface is destroyed