aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-09 19:40:39 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-09 19:40:39 +0200
commit26cced20d9ee31390a7bae5210eb8ec3f7e69b98 (patch)
treed56f96f050b8144bb15935dd854c6075cc24986a
parent85f38c06d094ba77ac7215331005fefe1c9c4e01 (diff)
downloadriver-26cced20d9ee31390a7bae5210eb8ec3f7e69b98.tar.gz
river-26cced20d9ee31390a7bae5210eb8ec3f7e69b98.tar.xz
Give xwayland views the right x/y coords
That wasn't really too hard now, was it?
-rw-r--r--src/XwaylandView.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XwaylandView.zig b/src/XwaylandView.zig
index 2530f19..a6bf0e1 100644
--- a/src/XwaylandView.zig
+++ b/src/XwaylandView.zig
@@ -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);
}
-/// TODO: real output layout coords
+/// Tell the client to take a new size
pub fn configure(self: Self, pending_box: Box) void {
c.wlr_xwayland_surface_configure(
self.wlr_xwayland_surface,
- 0,
- 0,
+ @intCast(i16, pending_box.x),
+ @intCast(i16, pending_box.y),
@intCast(u16, pending_box.width),
@intCast(u16, pending_box.height),
);