Window doesn't restore to same location #4012

issue PRabahy opened this issue on April 6, 2014
  1. PRabahy commented at 3:33 PM on April 6, 2014: contributor

    Low priority, minor bug. Effects Windows 7 64bit. (Other OS's/versions untested)

    Steps to reproduce:

    1. Areo snap Bitcoin-QT to the right side of the monitor. (1440 x 900)
    2. Close Bitcoin-QT. (Goes to system tray)
    3. Double click the icon in system tray to restore.

    Result: Restores about 100 pixels to the right of its last location. Some of the window is not visible because it is hanging off the right side of the screen.

    Expected result: The window should restore to the last location before it was closed.

  2. Telepatheic commented at 4:51 PM on April 6, 2014: contributor

    I can't replicate this. Could you post some screenshots. If this is a bug, it is likely to be a Windows bug not a bug in Bitcoin Core.

  3. PRabahy commented at 5:09 PM on April 6, 2014: contributor

    before after

    While taking the screenshots, I figured it out a bit more and this is probably a windows bug. This only occurs if the last action preformed on the window was an Areo snap. If the last action was just a traditional move, it restores to the last location. If the last action was an Areo snap, it restores to the location before the Areo snap.

    I'm guessing that Bitcoin could work around this, but it probably wouldn't be worth it.

  4. laanwj commented at 5:42 AM on April 7, 2014: member

    We don't do anything special to restore the window position, but instead make use of Qt's hide/show window functionality. These calls are supposed to keep the window in the same place on the screen. This is either a Qt or windows bug.

    You could try out if it is the same for other Qt applications, and if so, make a minimal proof of concept and file it as upstream Qt bug (http://qt-project.org/wiki/ReportingBugsInQt).

  5. laanwj closed this on Apr 7, 2014

  6. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me