aboutsummaryrefslogtreecommitdiff
path: root/src/XwaylandView.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/XwaylandView.zig')
-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),
);