view: fix typo causing UB on resizing xwayland views

This commit is contained in:
Isaac Freund 2021-07-14 23:51:49 +02:00
parent d413db9227
commit 3c951fed74
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -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 => {},
}
}