Skip to content

Window is offscreen, won't come back on monitor #2893

Closed

Description

@aleccaputo

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

  1. Have 2 1440p monitors connected
  2. 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.
  3. Github desktop is now "off the screen" (this isn't abnormal for windows).
  4. try all "window moving" tricks on windows (cascade, alt+tab, windows key+arrow keys) None work.
  5. 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).
  6. Uninstall/re-install
  7. Problem persists.
  8. 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

Activity

  1. aleccaputo commented on Sep 27, 2017

    @aleccaputo
    Author

    Well, fixed my own issue.

    1. Hit Alt+space to bring up the menu I couldn't with shift+right click.
    2. Press 'M' to make it move
    3. Hit one of the arrow keys
    4. 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.

  2. added
    bug
    on Sep 27, 2017
  3. genoxd commented on Sep 28, 2017

    @genoxd

    Alt+M Did not work for me.
    Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.

  4. aleccaputo commented on Sep 28, 2017

    @aleccaputo
    Author

    Make sure that the window was "open" and selected before doing it?

  5. genoxd commented on Sep 28, 2017

    @genoxd

    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

  6. BertLamb commented on Oct 3, 2017

    @BertLamb

    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.

  7. joshaber commented on Oct 10, 2017

    @joshaber
    Contributor

    This looks like a duplicate of #2107, so we'll continue to track it over there. Feel free to follow along!

  8. pale2hall commented on Feb 21, 2018

    @pale2hall

    @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.

  9. JasonStapley commented on May 9, 2018

    @JasonStapley

    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!!

  10. tengbao commented on May 16, 2018

    @tengbao

    A little easier than editing the AppData JSON file, this also worked for me:

    1. Right-click the GitLab Desktop shortcut, click Properties, go to the Shortcut tab
    2. Set Run to "Maximized", like this:

    The Library of Babel

    (from https://www.computerhope.com/tips/tip201.htm)

  11. locked as resolved and limited conversation to collaborators on Jul 17, 2018
  12. unlocked this conversation on Sep 27, 2018
  13. laurenth-personal commented on Oct 3, 2018

    @laurenth-personal

    I checked the json and I had it at -32000 -32000, I believe I cannot have set this myself :)

  14. ddowling-act commented on Oct 10, 2018

    @ddowling-act

    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.

  15. mikependon commented on Nov 9, 2018

    @mikependon

    Alt+M Did not work for me.
    Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.

    Thanks for this man. This helps!

  16. rnd00 commented on Nov 16, 2018

    @rnd00

    Still an issue, but

    @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.

    Thanks for this! It really helps!

  17. ooojustin commented on Nov 29, 2018

    @ooojustin

    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.

  18. edpuhs commented on Jan 1, 2019

    @edpuhs

    This is still an issue.

  19. sterlingfire commented on Jan 7, 2019

    @sterlingfire

    Alt+M Did not work for me.
    Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.

    You are a hero!

  20. idebtor commented on Jan 12, 2019

    @idebtor

    This should still be an issue.

    1. A simple solution is to remove the following file ('user' in my case).
      C:\Users\user\AppData\Roaming\GitHub Desktop\window-state.json
    2. Restart GitHub Desktop.
      <><
  21. amjad commented on Feb 28, 2019

    @amjad

    @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.

    This worked for me. Thank you!

  22. pjlasl commented on May 11, 2019

    @pjlasl

    Alt+M Did not work for me.
    Solved by going into %APPDATA%\GitHub Desktop\window-state.json and changing the window position.

    %APPDATA%\roaming\GitHub Desktop\window-state.json

  23. trevren11 commented on May 22, 2019

    @trevren11

    Still an issue

  24. shiftkey commented on May 22, 2019

    @shiftkey
    Member

    @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).

  25. NicsonMartinez commented on May 31, 2019

    @NicsonMartinez

    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

  26. kerihobo commented on Feb 29, 2020

    @kerihobo

    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!

  27. treysis commented on Apr 6, 2020

    @treysis

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions