Give xwayland views the right x/y coords

That wasn't really too hard now, was it?
This commit is contained in:
Isaac Freund 2020-05-09 19:40:39 +02:00
parent 85f38c06d0
commit 26cced20d9
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -57,12 +57,12 @@ pub fn init(self: *Self, view: *View, wlr_xwayland_surface: *c.wlr_xwayland_surf
c.wl_signal_add(&self.wlr_xwayland_surface.events.unmap, &self.listen_unmap); c.wl_signal_add(&self.wlr_xwayland_surface.events.unmap, &self.listen_unmap);
} }
/// TODO: real output layout coords /// Tell the client to take a new size
pub fn configure(self: Self, pending_box: Box) void { pub fn configure(self: Self, pending_box: Box) void {
c.wlr_xwayland_surface_configure( c.wlr_xwayland_surface_configure(
self.wlr_xwayland_surface, self.wlr_xwayland_surface,
0, @intCast(i16, pending_box.x),
0, @intCast(i16, pending_box.y),
@intCast(u16, pending_box.width), @intCast(u16, pending_box.width),
@intCast(u16, pending_box.height), @intCast(u16, pending_box.height),
); );