You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window is offscreen, won't come back on monitor #2893
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/
Hit Alt+space to bring up the menu I couldn't with shift+right click.
Press 'M' to make it move
Hit one of the arrow keys
now moving your mouse will have the window attached to it. Move it wherever until it shows up.
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.
Reacted by Robert Robillard, Simon Hughes, Mounika Rendedla, Xing Han Lu, David Jones, Antonio Banderas, Mark Janos, Brett Miller, anthonyalvarez5, Shane Grech and 80 more
Reacted by AydanBeytulov, Santhosh Nandakumar, robinwidontec and ClubSpeedJustinG
Reacted by AydanBeytulov, James, Anthony Hocquet, tssingkofer, robinwidontec and ClubSpeedJustinG
Reacted by AydanBeytulov, Nathan Orris, Anthony Hocquet, Jory Hogeveen, Ifta Noor Mahmood, Alexander Mantzoukas, robinwidontec, ClubSpeedJustinG and Sander Dahlberg
Reacted by huytran408, Luis Rausseo, Justin O'Malley, Anthony Hocquet, Nik, Matteo Guarda, ClubSpeedJustinG and Sander Dahlberg
Alt+M Did not work for me.
Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.
Reacted by Jeff Lockhart, Martin Beierling-Mutz, cambiaresearch, Ohad the Lad, philccatalog360, Jimmy Tran, micstr, Martin Hansen, Namit Sinha, James Vickery and 59 more
Reacted by micstr, Bela Arany, Filip Rastovic, Timothy Leverett and ZackaryW
Reacted by Jonas Elgblad, Magnus Larsson, Timothy Leverett, Jesse and Aisha Nasir
Reacted by Bela Arany, javierdocasar, Adam Valverde, Damien, Ranggi R., Timothy Leverett, Sterling, Betty Lezcano, Jesse, GMc14 and 2 more
Yeah, I also tried to move the window when I got it back in view and Alt+M also didn't work. I right clicked the github icon and selected move and even then I couldn't move the window though the usually 4 direction pointer finally showed up. The only way I'm able to move the window is by clicking on the bar at the top with the normal pointer.
Same as you the Windows key + arrow years didn't respond when the window was off screen
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).
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.
I was also able to fix it by right clicking the launcher, choosing Launch Full-Screen, and re-launching it.
Reacted by BrandtKA, Rich Franzmeier, Fu, Shaya-pnc, Malte, pf-pardhiva-erramilli, Krzysztof Spisak, Nathaniel Watkins, willgrahamboomtv, Vi Prime and 48 more
Reacted by Amjad and Tim Fisicaro
Reacted by rastafaa, Tony, Sam Freund, sesysm, crowdozer, Jeremy West, Amjad and Tim Fisicaro
Reacted by rastafaa, Tony, Sam Freund, crowdozer, Jeremy West, Andrew Abraham, Amjad, Tim Fisicaro and Chris Gonzales
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
Still an issue. Happens after undocking my laptop having had the app on another screen. Should be able to shift+right click the taskbar icon but this does nothing. Edited the window pos json and got it back.
Just delete the window-state.json file. It'll reset the location.
If I'm being entirely honest, I'm not sure why it's necessary to save the location.
Even so, it should store the number of monitors and their resolutions in window-state and reset if either of those change.
@trevren11 we believe this has been fixed in #7541 and will be available with the upcoming 1.7.0 release. It'll also be available on our beta channel after the next update (aiming for later this week).
I had the same issue:
Going to C:\Users\username\AppData\Roaming\GitHub Desktop\window-state.json
and deleting that 'window-state.json' file fixed the problem! :D
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!!
Licecap was off-screen for me despite win+tab or shift+cClick+move. This fixed it for me in the appdata, cheers!
Yeah, I also tried to move the window when I got it back in view and Alt+M also didn't work. I right clicked the github icon and selected move and even then I couldn't move the window though the usually 4 direction pointer finally showed up. The only way I'm able to move the window is by clicking on the bar at the top with the normal pointer.
Same as you the Windows key + arrow years didn't respond when the window was off screen
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.
Activity
aleccaputo commentedon Sep 27, 2017
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.
genoxd commentedon Sep 28, 2017
Alt+M Did not work for me.
Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.
aleccaputo commentedon Sep 28, 2017
Make sure that the window was "open" and selected before doing it?
genoxd commentedon Sep 28, 2017
Yeah, I also tried to move the window when I got it back in view and Alt+M also didn't work. I right clicked the github icon and selected move and even then I couldn't move the window though the usually 4 direction pointer finally showed up. The only way I'm able to move the window is by clicking on the bar at the top with the normal pointer.
Same as you the Windows key + arrow years didn't respond when the window was off screen
BertLamb commentedon Oct 3, 2017
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.
joshaber commentedon Oct 10, 2017
This looks like a duplicate of #2107, so we'll continue to track it over there. Feel free to follow along!
pale2hall commentedon Feb 21, 2018
@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.
JasonStapley commentedon May 9, 2018
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!!
tengbao commentedon May 16, 2018
A little easier than editing the AppData JSON file, this also worked for me:
(from https://www.computerhope.com/tips/tip201.htm)
laurenth-personal commentedon Oct 3, 2018
I checked the json and I had it at -32000 -32000, I believe I cannot have set this myself :)
ddowling-act commentedon Oct 10, 2018
Still an issue. Happens after undocking my laptop having had the app on another screen. Should be able to shift+right click the taskbar icon but this does nothing. Edited the window pos json and got it back.
mikependon commentedon Nov 9, 2018
Thanks for this man. This helps!
rnd00 commentedon Nov 16, 2018
Still an issue, but
Thanks for this! It really helps!
ooojustin commentedon Nov 29, 2018
Just delete the window-state.json file. It'll reset the location.
If I'm being entirely honest, I'm not sure why it's necessary to save the location.
Even so, it should store the number of monitors and their resolutions in window-state and reset if either of those change.
edpuhs commentedon Jan 1, 2019
This is still an issue.
sterlingfire commentedon Jan 7, 2019
You are a hero!
idebtor commentedon Jan 12, 2019
This should still be an issue.
C:\Users\user\AppData\Roaming\GitHub Desktop\window-state.json
<><
amjad commentedon Feb 28, 2019
This worked for me. Thank you!
pjlasl commentedon May 11, 2019
%APPDATA%\roaming\GitHub Desktop\window-state.json
trevren11 commentedon May 22, 2019
Still an issue
shiftkey commentedon May 22, 2019
@trevren11 we believe this has been fixed in #7541 and will be available with the upcoming
1.7.0release. It'll also be available on our beta channel after the next update (aiming for later this week).NicsonMartinez commentedon May 31, 2019
I had the same issue:
Going to C:\Users\username\AppData\Roaming\GitHub Desktop\window-state.json
and deleting that 'window-state.json' file fixed the problem! :D
kerihobo commentedon Feb 29, 2020
Licecap was off-screen for me despite win+tab or shift+cClick+move. This fixed it for me in the appdata, cheers!
treysis commentedon Apr 6, 2020
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.