Flameshot: Screenshot preview broken with mixed-DPI screens

Created on 17 May 2018  路  17Comments  路  Source: flameshot-org/flameshot

Describe the bug
I have two screens with different scale factors. When launching flameshot, I see only the contents of my HiDPI monitor scaled up to cover both my monitors.

Here are two screenshots (taken with scrot) to illustrate the problem. The first is before starting flameshot, the second is after starting flameshot.

2018-05-17-212243_5760x2160_scrot
2018-05-17-212253_5760x2160_scrot

To Reproduce

  1. Have two monitors
  2. Set QT_SCREEN_SCALE_FACTORS="1;1.5"
  3. Launch flameshot

Expected behavior
The screenshot preview matches what was shown on the screen before starting flameshot.

Desktop:

  • OS: Arch Linux
  • Version 0.5.1-5 from the community repository
Bug

Most helpful comment

@lupoDharkael will the above comment mean we'll get a fix?

All 17 comments

Having this issue as well.
Arch and one Retina Display one 27" QHD.

Similar issue with 3200x1800 main display and 1920X1080 external. First image is from spectacle, the second is from flameshot:

screenshot_20180724_142108

image

I cannot actually see anything useful during the preview. It almost looks like the two screens are interlaced during this step. Image captured with delayed scrot:

2018-07-24-143354_5120x1800_scrot

I plan to release a new version this week, this new version contains fixes for hidpi setups.

I still have this bug, but it is on Spectacle too. Could it be because of Qt?

Any chance for a fix for this issue?

KDE just rewrote the Rectangular Region mode in Spectacle, so maybe this is fixed for Spectacle.
https://bugs.kde.org/show_bug.cgi?id=385885

I can confirm that this issue is reproducible with Flameshot (flameshot-0.6.0-1.fc29.x86_64) and fixed in Spectacle (spectacle-18.04.3-1.fc29.x86_64 or earlier).

@lupoDharkael will the above comment mean we'll get a fix?

I can confirm that this issue is reproducible with Flameshot (flameshot-0.6.0-1.fc29.x86_64) and fixed in Spectacle (spectacle-18.04.3-1.fc29.x86_64 or earlier).

I'm on Spectacle 18.12.3-1 and the issue remains.

I think I have the same issue, the monitors seem to shift so my primary is blank and the primary display appears on the secondary. But the shutter help appears on the primary.

Had the same issue with single monitor set to ratio 1.7
Not the whole screen fits into view of the screenshot.
Seems like flameshot multiply scale twice, or rather multiply instead of divide.

@lluchs can you please test patched version released here as a downloadable built archive with x64 executable
https://github.com/Mart-Bogdan/flameshot/releases/tag/tmp-fix-scaling

My setup is slightly different, I have two identical 4k monitors, I have a global scaling 1.5x applied. When I use flameshot (the build from comment above) part of the second monitor screen is shifted to the first monitor screen, see the photo below:

IMG_20200102_094455

So far I found only two screenshot applications that work: shutter and spectacle, spectacle was recently fixed because it was broken in the same way as flameshot. It'd be great to fix flameshot because it is much more useful than spectacle, and shutter, sadly, is no longer maintained.

Hm, I'll try with two monitors today.
So you say both monitors have same dpi/scaling?

P.S. seems flameshot is also unmaintained. Tens of open pull requests :(

Hello, @karolbe i've made new fix. https://github.com/Mart-Bogdan/flameshot/releases/tag/tmp-fix-scaling-2

Tested it. It wasn't actually working at all for 2x scale, only for fractional ones.
Also made fix for two monitors. Tested on local setup with two monitors.

Wasn't able to test on 3 monitors, as my system don't support it. Some issues could be there.

@lluchs Can you please tell me how you enabled different scaling factors for different monitors
? Is this possible only with tiling window managers? Haven't tested different scaling factor setup (

@Mart-Bogdan good job, it works fine on my two monitor setup too :-) Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gdude2002 picture gdude2002  路  4Comments

mmesnjak picture mmesnjak  路  4Comments

abba23 picture abba23  路  3Comments

bingoIsCoder picture bingoIsCoder  路  4Comments

ElijahLynn picture ElijahLynn  路  3Comments