seat: always add view to focus stack on map
Currently if a view is mapped while some other view is fullscreen, it will not be added to the focus stack, which means that if the fullscreen view is then closed the view which was not added to the focus stack will not be focused. To fix this, always add views to the focus stack on map.
This commit is contained in:
@ -207,7 +207,10 @@ fn handleMap(listener: *wl.Listener(*wlr.XwaylandSurface), xwayland_surface: *wl
|
||||
}
|
||||
}
|
||||
|
||||
view.map();
|
||||
view.map() catch {
|
||||
std.log.crit("out of memory", .{});
|
||||
surface.resource.getClient().postNoMemory();
|
||||
};
|
||||
}
|
||||
|
||||
/// Called when the surface is unmapped and will no longer be displayed.
|
||||
|
Reference in New Issue
Block a user