Find this bit in gameframe script:
if (gameframe_isMaximized_hx) gameframe_restore(); else gameframe_maximize();
and add if (gameframe_can_resize) {} around it.
Though that was not my intent, I replicated the Windows quirk where window being resize-able and window being maximize-able are two separate properties.