Minimizing an OpenFL app in cpp Windows with resizable = false causes it to "die"?

Here is a code snippet to demonstrate the problem:

package;

import lime.app.Application;
import lime.ui.Window;
import openfl.display.Sprite;

class Main extends Sprite
{
	public var win:Window;

	public function new()
	{
		super();
		win = Application.current.window;
		win.onMaximize.add(on_max);
		win.maximized = true;
	}

	public function on_max():Void
	{
		win.resizable = false;
	}
}

When I minimize this app’s window with winkey + D the app dies.

I didn’t get a crash but I did notice the application would not come back

This is a workaround in Lime that fixed the issue for me:

Thank you for the sample :slight_smile: