git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit9caa2bae66947a3f2f10fcd85101db0b77922843
parent03dcf455d5
authorIsaac Freund <[email protected]>
date2020-05-09 19:40
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),
     );