wlcs anvil drawing
@@ -119,11 +119,21 @@ pub fn run(channel: Channel<WlcsEvent>) {
// draw input method square if any
let input_method = state.seat.input_method().unwrap();
- let (x, y, _, height) = input_method.coordinates();
+ let rectangle = input_method.coordinates();
input_method.with_surface(|surface| {
- elements.push(draw_input_popup_surface(surface.clone(), (x, (y + height))).into());
+ elements.push(
+ draw_input_popup_surface(
+ surface.clone(),
+ (
+ rectangle.loc.x + rectangle.size.w,
+ (rectangle.loc.y + rectangle.size.h),
+ ),
+ )
+ .into(),
+ );
});
+
// draw the cursor as relevant
// reset the cursor if the surface is no longer alive
let mut reset = false;
