When I close my laptop lid and re-open it, my open programs (firefox, outlook) windows are adjusted to non-maximized size. This happens 100% of the time I close the lid, reopen. I also have sleep mode turned off as well.
I have the settings set to "configure independently"
laptop = main
samsung tv (via hdmi) = secondary