aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-07-06 16:10:59 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-07-06 16:10:59 +0200
commitdfe61fe77de390e60247dc9729020632d69334eb (patch)
treef12c387dca068a1484c0ad0e03059fd02dfdb853
parent014963612c0d65b96d7d9c5318784e1ee6acb9df (diff)
downloadriver-dfe61fe77de390e60247dc9729020632d69334eb.tar.gz
river-dfe61fe77de390e60247dc9729020632d69334eb.tar.xz
xwayland: don't crash on null title
-rw-r--r--river/XwaylandView.zig2
1 files changed, 1 insertions, 1 deletions
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