-
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
[Bug]: Incorrect Screenshot/Video Region Selection Behaviour in Multi-Screen Set-Ups #453
Comments
This should be fixed in #457, if it's convenient for you to test that, I'd be happy to get feedback on it. |
Will do, though at this time it seems to be in need of a rebase. |
I've rebased it. |
Is this a regression from 1.17? I see the screenshot grabber (including in the old version) is using |
Yes, I do believe it starts with the very first Qt 6 build, while it still works with my custom Qt 5 build. |
Er, I mean not in 1.17 yet. That said, my latest Qt 5 builds are from "git master", not from the last release, but in any case, I suppose something there has changed in Qt 6 (could even be a Qt bug, hmmm). |
A bit confusing there are some ::primaryScreen()` ...what the Helck is with this ctrl+enter == submit comment... urgh... as I was saying: Some are |
Actually, it seems the selection area is only Also, if I change
to something like
at https://github.com/TokTok/qTox/blob/master/src/widget/tool/screenshotgrabber.cpp#L208 and then initiate the screenshot on the left-most display, the content seems more correct, and I can even select all of the displays for the screenshot, though the selection area is still only that Also, if the window is in the middle, or the right-most display when starting it, the screenshot area always starts from If I start the screenshot in the right-most display, and then start "painting" from top left corner of the left-most display and go as far to the lower right in the right-most display, the actual screenshot will only have content from the right-most display, and everything to the right after that is just black. Furthermore, the sizes look OK when I look at them via debug messages, like Iif I manually set the area at https://github.com/TokTok/qTox/blob/master/src/widget/tool/screenshotgrabber.cpp#L74 to something like When the I hope at least some of this makes at least some sense. I think I feel more confused while trying to put it all into words myself... I need a nap! |
Guessing now that part of the weirdness is from removing use of https://github.com/TokTok/qTox/blob/master/src/widget/tool/screenshotgrabber.cpp#L213 and while While I have managed to get the grab start from Here are some possibly relevant Qt bugs:
There is a simple screenshot application ( https://github.com/lxqt/screengrab ) that has a very similar feature, and it works okay still for me after the Qt 6 migration, so at least it should be possible to restore here too. |
I have a funny workaround where I give the overlay window scrollbars and frames so that I can move it around, and its content around. Feel like it's a bug in |
Since screengrab works, maybe we can adopt their code into qTox? |
Yeah, that is what I was kind of trying to do, but need to probably change things quite a bit... and would be nice to find out if it really is a Qt bug in any case. I'll try to come up with a minimal example to re-produce it and file a Qt bug for it. |
Contact Details (e.g. Tox ID or email)
No response
qTox Version
v1.18.2-16-gc6a756608
Commit Hash
c6a7566
Toxcore Version
0.2.20
Qt Version
6.8.1
Steps to reproduce
Observed Behavior
Example configuration:
Here, running the screenshot grabber will darken and let the user select an area in the size of
1920x1080
in the left-most display, with the actual screen content being from the primary display in the middle.Disabling the right-most display will have a similar effect, only the size of the capture area is then correct (likely only because the primary display is using the same resolution).
Using the
Select region
for a video source behaves in the same way, and this seems to happen already at the initial Qt 6 refactoring.Expected Behavior
The whole screen area is available for the screenshot/video grab.
Reproducibility
Always
Operating System
Linux
Operating System version/distro/name/etc.
Gentoo Linux
Relevant log output
The text was updated successfully, but these errors were encountered: