What’s happening is that the desktop window is remembering/restoring its last position and mode.
You can clear your app’s last cached settings by deleting the following file…
C:\Users\<UserName>\AppData\Local\<CompanyName>\<AppName>.system\CoronaPreferences.sqlite
Notes for the above:
- <UserName> is your Windows login name.
- <CompanyName> and <AppName> are the names you’ve entered into the Win32 build dialog.
Alternatively, in your “main.lua” file, you can detect if your app was launched in fullscreen mode and then change it back to normal windowed mode. This is probably your best option if your app has already been deployed to your customers. Just note that your app is still technically launching at fullscreen and then quickly changing mode immediately afterwards, which will trigger a “resize” event.
if (system.getInfo("platformName") == "Win") then if (system.getInfo("environment") == "device") then if (native.getProperty("windowMode") == "fullscreen") then native.setProperty("windowMode", "normal") end end end
I hope this helps!