Closed dwiel closed 3 years ago
It appears that the window width and height are possibly correct, but x should be -1680.0
.
Also, I was expecting the menu bar to be at position (0, 0), but according to the screen layout listed in the debug output above, it is at position (-1680.0, 0.0).
is it fixed if you restart talon, by the screens changing?
yes. Now I get the correct values:
2020-09-11 10:35:39 IO Screen(x=-3840.0, y=0.0, size=(3840.0, 2160.0), mm=(1354.6666463216147, 761.9999885559082))
2020-09-11 10:35:39 IO Screen(x=0.0, y=0.0, size=(2560.0, 1440.0), mm=(596.5504497563073, 335.5596279879229))
2020-09-11 10:35:39 IO Screen(x=2560.0, y=-34.0, size=(1440.0, 900.0), mm=(285.7499957084656, 179.29411495433135))
2020-09-11 10:35:39 IO ui.active_window().screen Screen(x=0.0, y=0.0, size=(2560.0, 1440.0), mm=(596.5504497563073, 335.5596279879229))
2020-09-11 10:35:39 IO old window dimensions: Rect(0.0, 23.0, 1920.0, 1417.0)
no monitors have been unplugged or plugged in since starting talon previously, though perhaps it did encounter a computer sleep-wake cycle.
Probably QT’s fault, would love a repro
To be clear, restarting talon fixed it. I did not change any screen settings.
I know. Maybe see if it happens again after sleep
It just happened again.
Screens are messed up again. Restarting talon fixes it.
I also just tried:
not a problem
Ok, I’m guessing screen update events don’t happen when the computer is asleep.
Is this something you think you will workaround in talon or something I should try to work around in user?
You won’t be able to trigger a screen refresh from python, I’ll think about it. How urgent is this?
It's not a huge deal, I have a script to restart talon and dragon that I'm in the habit of using after waking up anyway.
may be fixed on mac as of the upcoming beta release (approximately 0.1.2-60), please confirm
closing, please reopen if you test on beta and this isn't actually fixed
I have 3 monitors, from left to right: 4k, 1080, 4k. All are aligned on their top boundary. The center screen has the menubar on it.
When I run the following code:
I get the following output:
The problem is the active window is not on the rightmost screen as it would appear from this debug output. It is in the top left corner of the middle screen.