desktop: Window is offscreen, won't come back on monitor
Description
Had the new github desktop open, unplugged a monitor at some point and it must have been open on that one. Now when I try to open the window, it seems to open off-screen. Now i can’t get it back onto any of my other monitors (tried windows key + arrow keys, shift right clicking the icon on the taskbar doesn’t show the “move” option. Tried uninstalling and re-installing, still happens). I think the main problem here is the shift+right click on the icon doesn’t bring up any options.
Version
GitHub Desktop version: 1.0.1
OS version: Windows 10
Steps to Reproduce
- Have 2 1440p monitors connected
- unplug one, plug in a 1080p monitor NOTE: both of these steps i’m pretty sure was the initial issue, though I can’t try again since I can’t get the window to come back.
- Github desktop is now “off the screen” (this isn’t abnormal for windows).
- try all “window moving” tricks on windows (cascade, alt+tab, windows key+arrow keys) None work.
- Try shift+right clicking the icon to “move”, notice the windows dropdown doesn’t appear (also doesn’t show up on co-workers “working” github window).
- Uninstall/re-install
- Problem persists.
- NOTE: Old version of Github was installed (and working) this whole time.
Expected behavior: Window should open and be visible when I click the icon.
Actual behavior: Window seems to appear off-screen, but I can’t use any of the windows troubleshooting methods to get it back on-screen
Reproduces how often: Once, since I can’t get the window to show up on the screen even after uninstall/restart/
Logs
Additional Information
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (2 by maintainers)
Well, fixed my own issue.
Still strange that Uninstalling the program and reinstalling didn’t default it to opening on one of my two active monitors. Not sure if this is just a Windows bug or a GitHub bug…will wait to close issue.
Alt+M Did not work for me. Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.
@aleccaputo,
It’s Alt+Space.
I was also able to fix it by right clicking the launcher, choosing Launch Full-Screen, and re-launching it.
A little easier than editing the AppData JSON file, this also worked for me:
(from https://www.computerhope.com/tips/tip201.htm)
Following the advise of NassirAlawar with a little modification for the lazy like me I closed Git client and deleted the file %APPDATA%\GitHub Desktop\window-state.json
This did the trick!!
To me, this seems potentially the easiest part to fix (knowing absolutely nothing about why it is broken 😄). I have had issues before with other apps ending up off screen and have used this right click menu trick to get them back. It is unclear why GitHub desktop is missing this right click menu. It should have it though, and that should be fixed.
After clicking “Move”, you need to press one of the arrow keys, and only that! Not Win+Arrow, just one arrow key! Then it will “snap” to the mouse cursor and can be moved.
%APPDATA%\roaming\GitHub Desktop\window-state.json
Still an issue, but
Thanks for this! It really helps!
Thanks for this man. This helps!