Bug 402557 - On high DPI displays, windows are shifted when taking screenshot of the rectangular region. Similar issue is observed with kcolorchooser,
Summary: On high DPI displays, windows are shifted when taking screenshot of the recta...
Status: RESOLVED DUPLICATE of bug 385885
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-25 14:35 UTC by tamius.han
Modified: 2018-12-26 23:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
My desktop, normal, how it should be. (1.19 MB, image/jpeg)
2018-12-25 14:38 UTC, tamius.han
Details
My desktop, when taking a screenshot. Everything is shifted a fair bit to the left. (982.50 KB, image/jpeg)
2018-12-25 14:38 UTC, tamius.han
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tamius.han 2018-12-25 14:35:57 UTC
SUMMARY

When taking screenshots of a rectangular region with Spectacle, the image is offset by a fair bit, and as a result there are some regions that I can't include in the screenshot.

This appears to be caused by a mixture of increasing monitor scaling factor (Settings > displays) and font DPI (settings > fonts > force fonts DPI).

The change seems to be irreversible (resetting scaling factor and font DPI to the values from before scaling factor was increased doesn't make the issue go away). 

This doesn't appear to be a Spectacle bug, as I've noticed similar behaviour in kcolorchooser as well. 



STEPS TO REPRODUCE
0. 'Force fonts DPI' should be checked. Value doesn't matter. Scaling factor should be set to 1. 
1. Go to Settings > display, change scaling factor
2. Go to Settings > Fonts, change 'Force fonts DPI' to a different value
3. (Optionally) reset scaling factor back to 1 and 'Force fonts DPI' to original value.



OBSERVED RESULT

When selecting rectangular region for the screenshot with Spectacle, everything is offset to the left. KColorChooser picks color that's offset from the cursor, but in the opposite direction than Spectacle.

EXPECTED RESULT

When selecting rectangular region for the screenshot, windows don't get offset. Kcolorchooser picks color under the cursor, not somewhere way off.

SOFTWARE/OS VERSIONS
Linux: 4.19.8-2-MANJARO 
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION

I will provide screenshots as a separate attachments.
Comment 1 tamius.han 2018-12-25 14:38:00 UTC
Created attachment 117100 [details]
My desktop, normal, how it should be.
Comment 2 tamius.han 2018-12-25 14:38:51 UTC
Created attachment 117101 [details]
My desktop, when taking a screenshot. Everything is shifted a fair bit to the left.
Comment 3 tamius.han 2018-12-25 14:58:01 UTC
https://gfycat.com/AgedTiredIndigowingedparrot

Demo of the kcolorchooser issue
Comment 4 Nate Graham 2018-12-26 23:32:32 UTC
Please file a separate issue for kcolorchooser. Thanks!

*** This bug has been marked as a duplicate of bug 385885 ***