On wayland, window and screen dimensions reported by Qt differ if "normal" scaling is used, or the experimental fractional scaling (scale-monitor-framebuffer). To transpose the selected region from window position to screenshot position robustly, it's better to use Qt's window dimensions as reference instead of the Qt's screen dimensions.
coverage: 87.094% (+0.001%) from 87.093%
when pulling eb6bec7f9ac34e67dd481c49c59c92ca2c0d8e30 on feature/fix-selection-with-scaling
into dc8fcede6758f3516b1432db07b35a968f36bd31 on main.
On wayland, window and screen dimensions reported by Qt differ if "normal" scaling is used, or the experimental fractional scaling (scale-monitor-framebuffer). To transpose the selected region from window position to screenshot position robustly, it's better to use Qt's window dimensions as reference instead of the Qt's screen dimensions.