Can I disable the "fullscreen button" in windows?

I want to create a window of absolutely fixed size.

However, even if resizable is set to false, the problem is that when you press the window button, the window becomes full screen.

image

can i solve this?

iced version: 0.13.0

I’m not sure if you can. There seems to be no event that you can catch in window events (Resize maybe!?) that would get that.

There is an open issue on custom decorations (Support for drawing custom headerbars · Issue #759 · iced-rs/iced · GitHub). I’m sure those would go hand-in-hand (maybe for your use case, you’d want to disable the resize button anyways.)

1 Like