Skip to content

Commit 900e711

Browse files
SuperiorJTvberger
andauthored
Implement set_minimized for Wayland (rust-windowing#985)
Co-Authored-By: Victor Berger <vberger@users.noreply.github.com>
1 parent 55614c0 commit 900e711

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/platform_impl/linux/wayland/window.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ impl Window {
279279
}
280280

281281
pub fn set_minimized(&self, minimized: bool) {
282-
unimplemented!();
282+
// An app cannot un-minimize itself on Wayland
283+
if minimized {
284+
self.frame.lock().unwrap().set_minimized();
285+
}
283286
}
284287

285288
pub fn set_maximized(&self, maximized: bool) {

0 commit comments

Comments
 (0)