Bug 402557

Summary: On high DPI displays, windows are shifted when taking screenshot of the rectangular region. Similar issue is observed with kcolorchooser,
Product: [I don't know] kde Reporter: tamius.han
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: My desktop, normal, how it should be.
My desktop, when taking a screenshot. Everything is shifted a fair bit to the left.

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 ***