From 3c951fed7401a372d216d70add1ac0b10e52f1a9 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 14 Jul 2021 23:51:49 +0200 Subject: [PATCH] view: fix typo causing UB on resizing xwayland views --- river/View.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/river/View.zig b/river/View.zig index 567a910..acc6f25 100644 --- a/river/View.zig +++ b/river/View.zig @@ -341,7 +341,7 @@ pub fn setFullscreen(self: Self, fullscreen: bool) void { pub fn setResizing(self: Self, resizing: bool) void { switch (self.impl) { .xdg_toplevel => |xdg_toplevel| xdg_toplevel.setResizing(resizing), - .xwayland_view => unreachable, + .xwayland_view => {}, } }