Skip to content

Creating and closing floating window. #685

Answered by ardijanr
ardijanr asked this question in Q&A
Discussion options

You must be logged in to vote

Forcing window size seems to do the trick for floating window on tiling window managers.

My solution:

fn main() -> iced::Result {
let settings = Settings {
window: window::Settings {
max_size: Some((400,450)),
resizable: false,
..window::Settings::default()
},
..Default::default()
};
ScreenMode::run(settings)
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ardijanr
Comment options

You must be logged in to vote
1 reply
@ardijanr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants