Skip to content

Window hiding after using a second screen #2107

Closed

Description

@Raul6469

Description

I use a second screen with my laptop, in which I display the GitHub desktop window. The problem is when I disconnect the second screen, the window seems to be again on that second screen, as we can guess with the Windows animations.

Here is the animation :

ezgif-1-4bfa617f98

Version

GitHub Desktop version: 0.6.2, but the problem was also here in the previous version, 0.6.1

OS version: Windows 10.0.15063

Steps to Reproduce

  1. Connect a second screen to your laptop
  2. Move GitHub desktop window to that second screen
  3. Disconnect the second screen

Expected behaviour: The window should be displayed in your laptop screen

Actual behaviour: The window seems to be in that inexistant second screen

Reproduces how often: Always

Hope this might be useful, this is my first contribution !

Activity

  1. added
    bug
    investigation-needed
    on Jun 24, 2017
  2. added
    windows
    on Jun 26, 2017
  3. Raul6469 commented on Jul 30, 2017

    @Raul6469
    ContributorAuthor

    Any thoughts on this ? I'll just add that the issue is independent of screens orientation (not only vertically as I initally wrote).

    Edit: You have to connect your laptop to the exact same screen to get the window back. This is really annoying, because I can't connect to that screen at the moment, so I am unable to use GitHub Desktop for now. I tried reinstalling it, but it does not solve the problem.

  4. shiftkey commented on Jul 31, 2017

    @shiftkey
    Member

    @Raul6469 I can't reproduce this at the moment because I'm travelling (and they look at you funny when you try and take an external monitor on a plane), but maybe @iAmWillShepherd is able to reproduce it on his Windows machine.

    My gut feeling is that we should be able to get events when the screens are added/removed, and maybe we can move the app to a better location.

  5. Raul6469 commented on Jul 31, 2017

    @Raul6469
    ContributorAuthor

    Thanks for the answer @shiftkey ! I was just about to close this issue because I found a solution to my problem here with some keyboard tricks. It seems that it can occur for other Windows programs as well, so I don't really think that the problem is with desktop...

  6. iAmWillShepherd commented on Aug 2, 2017

    @iAmWillShepherd
    Contributor

    @shiftkey, unfortunately, I can't reproduce because I'm working on my laptop. Haven't actually unpacked everything since moving -_-.

  7. lownignitus commented on Aug 17, 2017

    @lownignitus

    I just had to deal with this same issue myself. I had GitHub installed on my mass storage HDD. I had to reinstall windows because it was simpler when I got an M.2 drive to use as my main boot drive. Launching from the install save on the HDD brought it up in such a way that it did not display on any screen. I tried the tried and true Shift+Right click to bring up system menu for icon to select move. To my surprise and horror this did bumpkiss...

    Thankfully I found this ticket and @Raul6469 's solution to his same problem. This allowed me to bring it back.

  8. shiftkey commented on Sep 26, 2017

    @shiftkey
    Member

    A similar report to this around restoring the app: #2853

    On a Windows multimonitor setup with the primary monitor being a High-DPI monitor (3000x2000 pixels - DPI-Font-Size set to 200%) and the secondary monitor being an ordinary 27" monitor (DPI-Font-Size set to 100%), when re-starting GitHub Desktop it tries to recreate its screen position somewhere out of the overall screen estate spanned by the two monitors.

  9. leonrenkema commented on Sep 30, 2017

    @leonrenkema

    I am experiencing the same issue, even when restarting and reinstalling the program it is still opening on the second screen. I have seen this also with other Electron applications. My solution was Ctrl-Shift-right-click on the application icon in the taskbar and then click maximize. This will force the screen to open on the main screen and then the problem is solved.

    But for Github Desktop this seems disabled, maybe a solution is enabling this function so the there is a way to maximize the window?

    edit: Just found out that you can maximize a program from the task manager, like this. Maybe that is a workaround for people experiencing the same.
    capture

  10. ostensene commented on Oct 18, 2017

    @ostensene

    Hi

    I am experiencing the same issue. I would like to add that using the keyboard shortcuts WIN+Left, WIN+Right, WIN+Up or Win+Down was not working when the program was on the disconnected monitor.

    I also was able to get the program to the correct screen with the help of the task manager and then dragging the title bar when the window was maximized

  11. added
    electron
    on Oct 18, 2017
  12. joshlangner commented on Nov 9, 2017

    @joshlangner

    I've also been able to reproduce the issue on my Windows 10 environment. The only solution was to delete the file %APPDATA%\GitHub Desktop\window-state.json, per the discussion over here: #2893

  13. shiftkey commented on Nov 23, 2017

    @shiftkey
    Member

    A bunch of extra details was provided in #3409

  14. rcmaehl commented on Nov 24, 2017

    @rcmaehl

    I'm also experiencing this issue with multiple monitors (3). Work around I'm using is to run it Maximized.

  15. 44 remaining items

  16. eliasvanderlinden commented on Oct 16, 2018

    @eliasvanderlinden

    use this fix: it's by far the fastest for windows 10.

    #2107 (comment)

  17. EPDISI commented on Nov 5, 2018

    @EPDISI

    I've also been able to reproduce the issue on my Windows 10 environment. The only solution was to delete the file %APPDATA%\GitHub Desktop\window-state.json, per the discussion over here: #2893

    above was the only fix that worked for me! Thank you!

  18. gurkanakcakaya commented on Dec 26, 2018

    @gurkanakcakaya

    It's an old issue but maybe it can be useful to somebody, if you check the logs it's some authentication fail (at least in my case)
    to open it you can go to AppData/Roaming/github Desktop/
    Rename the Cache folder to Old_Cache or just remove it this will bring you back the dekstop
    This won't solve the authenticaton, to solve this change your ssh link to the https link

  19. Croydon commented on Jan 22, 2019

    @Croydon

    I'm using GitHub Desktop with two displays for a long time now, but I run today for the first time into this issue. #2107 (comment) fixed it for me

  20. irfan-bhat commented on Feb 6, 2019

    @irfan-bhat

    Here is the Fix
    #3342 (comment)

  21. alexdobsom commented on Mar 22, 2019

    @alexdobsom

    there is a workaround by switching to tablet mode
    image

  22. vaibhavhrt commented on Apr 23, 2019

    @vaibhavhrt

    Had this issue on my laptop(no secondary screen) with a detachable screen. Deleting %APPDATA%\Roaming\GitHubDesktop\window-state.json fixed it.

  23. mswezey23 commented on Apr 24, 2019

    @mswezey23

    Almost 2 years and still hasn't been properly fixed 😏

  24. goodlux commented on Nov 19, 2019

    @goodlux

    I'm having this problem on OS X Catalina. Slack is open, can't find it anywhere! Can't restart it!

  25. tierninho commented on Nov 19, 2019

    @tierninho
    Contributor

    @goodlux Please fill a new issue and provide more details.

  26. mswezey23 commented on Nov 19, 2019

    @mswezey23

    I'm having this problem on OS X Catalina. Slack is open, can't find it anywhere! Can't restart it!

    The topic in this thread is for GitHub Desktop, not Slack. :)

  27. MaslinoJ commented on Jan 24, 2020

    @MaslinoJ

    I had the same issue .. jumped up and down with no good results . . until i tried some thing on task manager,

    1. right click on the application/screen not showing,
    2. choose maximize.
  28. Jonas-Carvalho commented on Jan 27, 2020

    @Jonas-Carvalho

    You can retrieve lost windows by doing the following:

    • Activate the app by clicking the Taskbar icon
    • Hit Alt+Space which will show the Window menu
    • Hit M, or click the Move menu item
    • Tap one of your cursor keys which will lock the window to your mouse cursor
    • You can them move you mouse cursor and the window will come along with it
    • Drop it where you please, with a click of the mouse

    I need this for a variety of apps recently where their windows like to vanish outside of the bounds of my displays - Slack desktop app, Chrome dev tools windows...

    Thanks, dude it really worked for me

    Worked smoothly! Thx!

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

    bugelectronpriority-3windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions