Now the "undecorated" and "resizable" options of the main window are defined by parameters.