river: update for wlroots 0.13.0

This commit is contained in:
Isaac Freund
2021-04-08 00:21:17 +02:00
parent 3c1f1df0c0
commit 9e3e92050e
10 changed files with 104 additions and 59 deletions

View File

@ -104,13 +104,13 @@ pub fn close(self: Self) void {
self.xdg_surface.role_data.toplevel.sendClose();
}
pub inline fn forEachPopup(
pub inline fn forEachPopupSurface(
self: Self,
comptime T: type,
iterator: fn (surface: *wlr.Surface, sx: c_int, sy: c_int, data: T) callconv(.C) void,
user_data: T,
) void {
self.xdg_surface.forEachPopup(T, iterator, user_data);
self.xdg_surface.forEachPopupSurface(T, iterator, user_data);
}
/// Return the surface at output coordinates ox, oy and set sx, sy to the