-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GUI Window stops appearing due to odd geometry values in config #4
Comments
I encounter the same issue, It seems that the weird geometry values get written to the config when I work on a setup with several screens. When I disconnect the other screens from my laptop, the gui still goes to wherever it was on the multiple screens, which is outside of the current screen. On windows 10, I could shift+right-click on the program in the task bar to maximize the gui and it would reappear. They removed this option in windows 11, so now I'm stuck |
I cannot test the situation. A possible solution could be to ignore any excessive position values. But what is excessive? May be it is sufficient to only reject the position |
is there no way to check whether the current position is at least on one of the screens? |
I don't know. But if we catch bad values before they are written into the config and if these bad values are easy to identify, we are good. |
I confirm the values were actually seen (copy-pasted from the broken config file). Also I was not using any additional displays - all on one laptop. So yes, it seems like some special numbers and may be it is enough to filter them. |
I asked ChatGPT where 32000 may come from and its reply was:
|
I tested on my Windows box (Window 10), but the geometry is stored correctly when I close a minimized git gui application. No -32000. Can you reproduce this? |
I cannot reproduce - it was single time I observed this behavior. Sometimes I have many GUI windows open, maybe it matters somehow, but I tried multi windows (minimized and not), but still was unable to reproduce. |
May be just filtering -32000 will be alright |
But something surely works different when a minimized window is closed:
Closing II:
Also I noted when performing Cllosing I - before closing the window for a short time becomes not maximized and shifted - seems in the same way as it would appear after Closing II |
Here are the guidelines for a patch that I would accept:
|
Using version 0.21 Windows 64:
In one of my repositories GitGUI window stopped appearing (just showed a taskbar icon ). In other repositories it was alright.
Found no problems in repository with git bash and TortoiseGit
Then found that the issue was caused by odd values in the config file:
After I replaced geometry values with the screen coordinates from a "healthy" repository, window appeared.
Suppose this is a bug and such numbers should not be written in the config at all or should be checked on load.
The text was updated successfully, but these errors were encountered: