Xwayland: fix View.fromWlrSurface for OR surfaces
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user