winit icon indicating copy to clipboard operation
winit copied to clipboard

with_always_on_top and set_always_on_top no longer seem to exist

Open MHanak1 opened this issue 2 years ago • 1 comments

those functions (implemented around 2018) exist in the documentation but no longer seem to exist in the code.

https://docs.rs/tauri-winit/latest/winit/window/struct.Window.html#method.set_always_on_top

error[E0599]: no method named `set_always_on_top` found for struct `Rc<Window>` in the current scope
  --> src/main.rs:41:9
   |
41 |     window.set_always_on_top(true);
   |            ^^^^^^^^^^^^^^^^^ method not found in `Rc<Window>`

MHanak1 avatar Feb 04 '24 11:02 MHanak1

It has been replaced by Window::set_window_level

msiglreith avatar Feb 04 '24 11:02 msiglreith