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
Screen geometry #3222
Comments
I can't seem to reproduce this on my Mac. Tried with just laptop screen and saves/recovers position, tried with attached display and it saves/recovers on which ever screen I choose. Have opened and closed on external monitor, disconnected external, opened and it detects no screen position and opens on laptop correctly. |
The same for me. |
Added diagnostics menu under Help Menu that we can enable/disable as needed and update code to collect more info if we need to investigate fault further. May help in this case. |
I have tested again.
Maybe this helps. |
Never thought of checking that..... that may indeed be the source of the issue. Will check. |
I have tested again: |
I also notice that the screen resolution of the main screen is always listed under "About": Money Manager Ex |
{675644} normal block at 0x00000204D3E8B380, 8 bytes long. Solution: |
Possible fix is:
|
What I still don't understand is why it depends on the resolution of the screen. |
The screen layout may have changed between saving last and opening. E.g laptop may be connected to or not an external display. We need to make sure we don’t open in a place that would be off any screen. |
Of course, MMEX cannot be opened on a screen that does not exist, then it must be opened on the main screen. |
I only see a problem in negative values when the app is pressed to the edge of the screen. It is difficult to understand the nature and magnitude of these values. But we must somehow allow such a small exit over the edges. This will solve some of the problems.
|
I used to program many such solutions, but I am an old school programmer (software), because I retired 23 years ago. I would save the following items when exiting MMEX: When starting MMEX: the saved screen is not present If the screen is present: However, problems could arise if the saved screen has a different (too small) resolution in the meantime. this could be solved by saving the resolution of this screen and comparing it when starting MMEX, if it does not match, MMEX should be opened on the main monitor. |
At present we do something very similar but instead of holding onto screen numbers we check if the logical window co-ords fit into any window. As @vomikan notes there is an issue with window geometry in wxWidgets reporting -ve numbers off the screen co-ords when windows are pressed to the edge. We will look to get a fix in there for the 1.5.1 release. |
would be happy if you can solve this problem. |
A looser match to check if the window 'fits' onto a screen has been implemented. Now if the window has at least 50% of its real estate on any screen then it will be opened in the saved position, otherwise a default position on the main screen will be used. This solves the original main problem of it potentially opening on a screen that no longer exists whilst allowing some flexibility on location. Now you can save the position when it spans screens, is slightly off screen, or the reported geometry is slightly off! Change is in master at present. @renato-mmex @vomikan - Please test. |
Hello Mark
Congratulations, have tested various positions and it seems to work.
See:
https://forum.moneymanagerex.org/viewtopic.php?f=23&t=10379&p=21933#p21933
Greetings Renato
Am 27.04.2021 um 21:43 schrieb Mark Whalley:
…
A looser match to check if the window 'fits' onto a screen has been
implemented. Now if the window has at least 50% of its real estate on
any screen then it will be opened in the saved position, otherwise a
default position on the main screen will be used. This solves the
original main problem of it potentially opening on a screen that no
longer exists whilst allowing some flexibility on location. Now you
can save the position when it spans screens, is slightly off screen,
or the reported geometry is slightly off!
Change is in master at present. @renato-mmex
<https://github.com/renato-mmex> @vomikan <https://github.com/vomikan>
- Please test.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3222 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASK3KSTH342LNAJV44XQFALTK4HV7ANCNFSM42WLFU6Q>.
|
fix(#3222): more 'loose' fit for screen
fix(#3222): more 'loose' fit for screen
Hi
I test each new version on my 3 screens.
Since the last MMEX versions, MMEX no longer starts on the screen on
which it was last closed.
MMEX starts on the screen (landscape, 1920x1080) defined for the main
Windows display.
Greetings @renato-mmex
#2877
#2826
The text was updated successfully, but these errors were encountered: