[Windows] GUI window can still appear off screen. #11207

issue achow101 opened this issue on August 31, 2017
  1. achow101 commented at 7:35 PM on August 31, 2017: member

    The GUI does not appear on windows if the last position of the window is off screen, as would be with multiple monitors and then subsequently disconnecting one monitor. I believe this is related to #7869 and #11171. It seems that e9ff818b69c2f8ce4a151d1a81a3e22a4319c93d did not fix this problem.

    This is easy to replicate; open regedit.exe (windows registry editor), find the registry keys in HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt. Edit the nWindowPos entry to be a point that is off screen. The next start of Bitcoin Core will result in the window being off screen and there is no way to get it back without doing -resetguisettings

  2. achow101 commented at 11:08 PM on August 31, 2017: member

    According to the discussion in #11171, it seems that the problem there was not an off screen issue but a memory access violation. So any fixes for an off screen issue (#11208) may not fix that problem.

  3. AllanDoensen commented at 11:01 AM on September 1, 2017: contributor

    try the fix in #10156

  4. MarcoFalke commented at 11:14 AM on September 1, 2017: member
  5. fanquake added the label Windows on Sep 1, 2017
  6. jonasschnelli commented at 5:18 PM on September 3, 2017: contributor

    Agree that we should fix this. I assume it's a simple one to fix. Similar to https://github.com/bitcoin/bitcoin/commit/51833a17347fdc3615afb693e4ff8d347fc2eda2, we need to check if the upper left corner of the GUI window is outside of the current, displayed screen bounds (maybe with some 20px padding). If the window is outside the bounds, relocate it to the default position (centre on screen 0).

  7. mb300sd commented at 4:43 PM on September 4, 2017: contributor

    Fixed in BTC, but a trick for this is to select the window from the task bar, and then hit Alt+Space. Then use the keyboard to select Move. Then the window will stick to your mouse pointer.

  8. jonasschnelli commented at 9:26 PM on September 5, 2017: contributor

    I just tried to reproduce this issue on Windows 8.1 by manipulating the window position with RedEdit. Could not reproduce with 0.15.0rc2 gitian build (moved the window pos to >x2000,y2000 and the window relocated correctly at the right bottom border).

    Could it be that this is a QT issue? @achow101: did you use a self-compiled Bitcoin-Qt? Can you reproduce it with the "official" 0.15.0rcs?

  9. achow101 commented at 9:44 PM on September 5, 2017: member

    @jonasschnelli Hmm. I think I may have been using either an older version or a custom build. Testing with 0.15.0rc3 doesn't seem to be having this problem for me.

  10. jonasschnelli commented at 9:45 PM on September 5, 2017: contributor

    Tested also on Window 7 and Windows 10. had the issue with 0.14.0, ... though I could not reproduce this issue in 0.15.0rc2. Either we have fixed this already in our codebase or the upgrade of our dependencies to Qt5.7 did fix it.

  11. laanwj referenced this in commit f2e0ff687d on Sep 15, 2017
  12. laanwj closed this on Sep 25, 2017

  13. laanwj referenced this in commit 8cf88b4aae on Sep 25, 2017
  14. codablock referenced this in commit b6e7a4b612 on Sep 25, 2019
  15. charlesrocket referenced this in commit 5dc1920f75 on Dec 15, 2019
  16. barrystyle referenced this in commit fbc3c58b1d on Jan 22, 2020
  17. andrewtookay referenced this in commit 0cd763d9d4 on Jul 24, 2021
  18. 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-04-13 18:15 UTC

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