From 26cced20d9ee31390a7bae5210eb8ec3f7e69b98 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 9 May 2020 19:40:39 +0200 Subject: [PATCH] Give xwayland views the right x/y coords That wasn't really too hard now, was it? --- src/XwaylandView.zig | 6 +++--- 1 file 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), );