Skip to content

No restore feature from taskbar menu: problem when window is off screen #2311

Open

Description

@kdharris101

Description

After connecting to an external display, my github desktop window was off all screens. With other apps you can right-click on the taskbar icon and choose maximize or restore to put the window back on the main display. But these are not available for github desktop.

Restarting the computer didn't help, and nor did uninstalling and reinstalling github. Eventually I solved it by clicking on the icon and pressing F11 to maximize. But even then, there is no way to access the window size control features.

Having a restore function on the taskbar icon would really help!!

Version

GitHub Desktop version: Most recent. Can't read version number because no way to access help menu!!

OS version: Windows 10.0.15063

Steps to Reproduce

  1. [First step]
  2. [Second step]
  3. [and so on]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Reproduces how often: [What percentage of the time does it reproduce?]

Logs

Additional Information

Activity

  1. added
    bug
    windows
    on Jul 24, 2017
  2. shiftkey commented on Jul 24, 2017

    @shiftkey
    Member

    For reference, this is the menu that @kdharris101 is referring to:

    We don't seem to have a context menu when I do the same with the Desktop window - right-click just focuses on the window - which makes me think this is something we need to fix in Electron itself.

  3. shiftkey commented on Jul 24, 2017

    @shiftkey
    Member

    But even then, there is no way to access the window size control features.

    As a workaround, the window location state is stored in a JSON file - you can delete that to get back to a happy place while we deal with the underlying taskbar integration:

    If your GitHub Desktop is stuck in the fullscreen "loop", it can be fixed by quite simply deleting the window-state.json file located in the GitHub Desktop folder. Mine was located at C:\Users(home)\AppData\Roaming\GitHub Desktop.

  4. kdharris101 commented on Jul 25, 2017

    @kdharris101
    Author
  5. w60001 commented on Aug 23, 2017

    @w60001

    Just wanted to mention that I just ran into this same issue (and actually stopped me from helping on another issue).

    On my docking station at work, GitHub Desktop was on a secondary monitor. When I was working from home I could not get the window to come onto my main screen. All combinations of launching/killing/right-clicking/shortcut keys did not help. I also noticed that the "shift+right-click" menu did not show up properly. The window happily appeared on that second monitor as soon as I came back to my dock.

    I'm sure the JSON file would have helped if I knew about it...

  6. mattjohnsonpint commented on Sep 29, 2017

    @mattjohnsonpint

    I run into this all the time. Deleting the file fixes it, but is annoying. I have two screens on a docking station , and my laptop screen. I think that may have something to do with it.

  7. added
    electron
    on Oct 18, 2017
  8. TronActive commented on Oct 22, 2017

    @TronActive

    I run into this all the time as well.

  9. mgatland commented on Dec 4, 2017

    @mgatland

    I hit this today after unplugging a monitor. The GitHub window was off-screen.

    I tried selecting Github Desktop on the task bar, then pressing Windows Key + Left to make it cycle into a valid position. This did not work. It would be nice if it did, as it's how I normally try to fix off-screen windows.

  10. MitchellSingleton commented on Dec 6, 2017

    @MitchellSingleton

    I think that I found a work around.

    I edited the window-state.json file to this:
    {"width":,"height":,"x":,"y":,"isMaximized":false,"isFullScreen":false,"displayBounds":{"x":0,"y":0,"width":1920,"height":1080}}

    and then made the file read-only. This appears to prevent the window information from being saved and I don't have to "fix" it again.

  11. added
    priority-3
    on Oct 10, 2018
  12. rob2d commented on May 1, 2019

    @rob2d

    Glad there is a workaround (thanks for that @MitchellSingleton ), but would be great if this was looked at since it's been quite a while [18 months]. Had not completely resolved my issue for some reason.

    The lack of window control + frameless may have to do with Electron, but I am pretty sure this is not a limitation of Electron itself. For popular examples, check out VSCode or Slack. I'm not sure if it helps, but one of the symptoms of this issue is that you cannot right click to get context menu on instances of the window itself.

    image

    [right clicking + Ctrl: no result}
    image

    Another workaround if anyone else is stuck on Windows 7 for now (mentioned on another now-closed thread) is to right click the shortcut for Github Desktop and then Change the Run option to Maximized:
    image

    Unfortunately, in some work environments we aren't able to customize our windows fully -- so it may be that I am on Windows 7 here. I have not worked with electron specifically to make a meaningful contribution and am a bit limited to time, just wanted to put a note that it does affect many people at large orgs if anyone working actively on GitHub Desktop can check if any updates for electron has made resolving this easier. One of the major causes of window context being messed up to begin with is having multiple monitor configs or logging in virtually from different PCs, if that helps. It's not the worst deal but having to start maximized is a bit annoying even though it's just a windows + left key stroke since most devs will place there windows in the same places for workflows.

    In any case, thanks and all else being said appreciate the work on this app 👍

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