Conemu: When being docked to the left, the position and size is not stored/restored after a restart

Created on 10 Oct 2018  路  5Comments  路  Source: Maximus5/ConEmu

Versions

ConEmu build: 180626 x64
OS version: Windows 2016 x64
Used shell version cmd

Problem description

When The main window is being docked to the left, the position and size is not stored/restored after a restart.

Steps to reproduce

  1. Start ConEmu
  2. Press Win+Left
  3. Exit ConEmu
  4. Start ConEmu

Actual results

The ConEmu window is being shown at some random position and with a random size.

Expected results

The ConEmu window should be shown at the very same exact X/Y position with the very same width and height.

Additional information

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.

window-position

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.

All 5 comments

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

  1. User will not be able to restore window to the expected size (usually smaller than monitor)
  2. If your display is changed and you run the application, you start it with wrong coordinates due to different display sizes.

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.

Was this page helpful?
0 / 5 - 0 ratings