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
No restore feature from taskbar menu: problem when window is off screen #2311
bugConfirmed bugs or reports that are very likely to be bugselectronIssues related to our use of Electron that may need updates to Electron or upstream fixespriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
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
[First step]
[Second step]
[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?]
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.
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.
Thanks, that fixed it!
In case it helps, here was the contents of window-state.json:
{"width":960,"height":660,"x":32767,"y":-32768,"isMaximized":false,"isFullScreen":true,"displayBounds":{"x":0,"y":-1080,"width":1920,"height":1080}}
From: Brendan Forster [mailto:[email protected]]
Sent: 24 July 2017 14:57
To: desktop/desktop <[email protected]>
Cc: Harris, Kenneth <[email protected]>; Mention <[email protected]>
Subject: Re: [desktop/desktop] No restore feature from taskbar menu: problem when window is off screen (#2311)
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2311 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AD7KlWUIY5U7PVaWn3XWK5idZKEh4MiOks5sRKKugaJpZM4OghEb>.
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...
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.
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.
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.
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.
[right clicking + Ctrl: no result}
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:
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 👍
bugConfirmed bugs or reports that are very likely to be bugselectronIssues related to our use of Electron that may need updates to Electron or upstream fixespriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
Activity
shiftkey commentedon Jul 24, 2017
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.
shiftkey commentedon Jul 24, 2017
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:
kdharris101 commentedon Jul 25, 2017
w60001 commentedon Aug 23, 2017
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...
mattjohnsonpint commentedon Sep 29, 2017
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.
TronActive commentedon Oct 22, 2017
I run into this all the time as well.
mgatland commentedon Dec 4, 2017
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.
MitchellSingleton commentedon Dec 6, 2017
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.
rob2d commentedon May 1, 2019
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.
[right clicking + Ctrl: no result}

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:

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 👍
Scaffold the workspace and a GPUI window with GHD chrome
feat: M0 scaffold — GPUI window with GitHub Desktop chrome
Scaffold the workspace and a GPUI window with GHD chrome
Scaffold the workspace and a GPUI window with GHD chrome
feat: M0 scaffold — GPUI window with GitHub Desktop chrome