From 1199ff212bf691bfcf67d12c4b947cd993a6a86b Mon Sep 17 00:00:00 2001 From: Maxim Sokolov Date: Sun, 22 Dec 2024 19:24:32 -0800 Subject: [PATCH] fix wayland --- window/src/os/wayland/window.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index 79960b3e4a4..9e231532933 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -386,6 +386,13 @@ impl WindowOps for WaylandWindow { }); } + fn get_window_position(&self) -> Future { + let mut promise = Promise::new(); + let future = promise.get_future().unwrap(); + promise.ok(ScreenPoint::new(0, 0)); + future + } + fn set_text_cursor_position(&self, cursor: Rect) { WaylandConnection::with_window_inner(self.0, move |inner| { inner.set_text_cursor_position(cursor);