window_manager icon indicating copy to clipboard operation
window_manager copied to clipboard

[Linux] Maximizing window erases minimum size constraint

Open holocronweaver opened this issue 8 months ago • 1 comments

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!

holocronweaver avatar Dec 02 '23 08:12 holocronweaver

same

jhmarryme avatar Dec 13 '23 01:12 jhmarryme