Skip to content

[Linux] Maximizing window erases minimum size constraint #422

Open
@holocronweaver

Description

@holocronweaver

On Linux (Ubuntu 22.04) if I set a minimum size, like:

WindowManager.instance.setMinimumSize(const Size(600, 600));

it is repsected until I maximize the window. If I then unmaximize the window it will ignore the minimum size and allow me to shrink it as small as I like.

I tried to work around this by listening for WindowUnmaximize and resetting the minimum size, but it had no effect:

@override
void onWindowUnmaximize() {
  WindowManager.instance.setMinimumSize(const Size(600, 600));
}

I am guessing something about maximizing the window is preventing window_manager from enforcing its constraints, but not sure how to resolve.

Thanks for this nifty package by the way, very useful!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions