Xwayland: fix View.fromWlrSurface for OR surfaces

This commit is contained in:
Isaac Freund
2022-06-24 12:05:54 +02:00
parent 7d9d889226
commit db366e9455
2 changed files with 3 additions and 1 deletions

View File

@ -430,7 +430,7 @@ pub fn fromWlrSurface(surface: *wlr.Surface) ?*Self {
if (build_options.xwayland) {
if (surface.isXWaylandSurface()) {
const xwayland_surface = wlr.XwaylandSurface.fromWlrSurface(surface);
return @intToPtr(*Self, xwayland_surface.data);
return @intToPtr(?*Self, xwayland_surface.data);
}
}
if (surface.isSubsurface()) {