Give xwayland views the right x/y coords
That wasn't really too hard now, was it?
This commit is contained in:
parent
85f38c06d0
commit
26cced20d9
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue