After upgrading from Ubuntu 18.04 to 22.04 maximized windows are not correctly restored - they get under the Dock when Ubuntu comes back from standby (maybe also after locking screen?).
If I unmaximize and maximize the window again it correctly autofits without the Dock panel covering the window.
How can this be solved?