ConEmu build: 180626 x64
OS version: Windows 2016 x64
Used shell version cmd
When The main window is being docked to the left, the position and size is not stored/restored after a restart.
The ConEmu window is being shown at some random position and with a random size.
The ConEmu window should be shown at the very same exact X/Y position with the very same width and height.
I've asked the same question for IE on Super User some years ago, which also has screenshots to illustrate the behaviour. I've also reported a similar bug for Firefox some time ago.
In fact, beside my own applications and Google Chrome, most other applications seem to be unable to keep their pixel position and size when being docked to some side of the desktop.
I see this as _very_ annoying, since on my large monitors, a docked window to one side of the screen is more than enough of what I need.
The problem comes from bad design of Windows UI API.
Docked window is treated as Maximized, and thats why applications shall not save coordinates. But Maximized is not Docked 馃槙 It's impossible to save or restore position without heavy tricks.
On the other hand, I've already implemented almost all emulation of docking.
Personally, in my application, I don't give a damn about the actual state; I simply store and restore the pixel position and size.
This works quite well for my (WinForms) applications.
Bad approach.
If it works for you it doesn't mean the way is correct.
If you store coordinates in pixels, than if you close the window in maximized position
You could make it an optional checkbox. It would make me more than happy.
Same problem here.
Restoring by pixel would be also awesome for me.
Most helpful comment
The problem comes from bad design of Windows UI API.
Docked window is treated as Maximized, and thats why applications shall not save coordinates. But Maximized is not Docked 馃槙 It's impossible to save or restore position without heavy tricks.
On the other hand, I've already implemented almost all emulation of docking.