Skip to content

Commit b0cf01a

Browse files
authored
fix: Mention caveats with window bounds under Wayland (#559)
1 parent 7ac5911 commit b0cf01a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

platforms/unix/src/adapter.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ impl Adapter {
144144
let _ = self.messages.send(message);
145145
}
146146

147+
/// Set the bounds of the top-level window. The outer bounds contain any
148+
/// window decoration and borders.
149+
///
150+
/// # Caveats
151+
///
152+
/// Since an application can not get the position of its window under
153+
/// Wayland, calling this method only makes sense under X11.
147154
pub fn set_root_window_bounds(&mut self, outer: Rect, inner: Rect) {
148155
let new_bounds = WindowBounds::new(outer, inner);
149156
let mut state = self.state.lock().unwrap();

0 commit comments

Comments
 (0)