transactions: revert c0d7e71

This commit is contained in:
Isaac Freund
2020-06-09 17:04:38 +02:00
parent 7c094420ed
commit 24b1a566de
6 changed files with 36 additions and 99 deletions

View File

@ -58,13 +58,13 @@ pub fn init(self: *Self, view: *View, wlr_xwayland_surface: *c.wlr_xwayland_surf
}
/// Tell the client to take a new size
pub fn configure(self: Self, box: Box) void {
pub fn configure(self: Self, pending_box: Box) void {
c.wlr_xwayland_surface_configure(
self.wlr_xwayland_surface,
@intCast(i16, box.x),
@intCast(i16, box.y),
@intCast(u16, box.width),
@intCast(u16, box.height),
@intCast(i16, pending_box.x),
@intCast(i16, pending_box.y),
@intCast(u16, pending_box.width),
@intCast(u16, pending_box.height),
);
// Xwayland surfaces don't use serials, so we will just assume they have
// configured the next time they commit. Set pending serial to a dummy