The window now remembers both its normal-mode geometry and the current geometry. Only the latter is affected by maximizing and fullscreen mode. Only the normal-mode window geometry is saved persistently.
The window closing function (execute "quit") was moved to the WM.
Win32: This should fix the issues where switching back and forth between fullscreen mode would result in invalid window placement for the normal mode window.
Added plenty of comments about what the current (messy) WM implementation is doing and how to improve it.
WM: Improved window placement logic
The window now remembers both its normal-mode geometry and the current
geometry. Only the latter is affected by maximizing and fullscreen mode.
Only the normal-mode window geometry is saved persistently.
The window closing function (execute "quit") was moved to the WM.
Win32: This should fix the issues where switching back and forth between
fullscreen mode would result in invalid window placement for the normal
mode window.
Added plenty of comments about what the current (messy) WM implementation
is doing and how to improve it.