We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac5911 commit b0cf01aCopy full SHA for b0cf01a
platforms/unix/src/adapter.rs
@@ -144,6 +144,13 @@ impl Adapter {
144
let _ = self.messages.send(message);
145
}
146
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.
154
pub fn set_root_window_bounds(&mut self, outer: Rect, inner: Rect) {
155
let new_bounds = WindowBounds::new(outer, inner);
156
let mut state = self.state.lock().unwrap();
0 commit comments