flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.67k stars 1.58k forks source link

Flameshot shifts monitors #590

Open Scrumplex opened 5 years ago

Scrumplex commented 5 years ago

Flameshot version v0.6.0 (from Arch Linux community repo)

Describe the bug When using a scale factor of more than 1 and having multiple monitors flameshot shifts the preview ~300px to the left which makes it's use impractical. This bug may be related with #227 or may even be an upstream Qt bug. I have only tested it with X.Org with the free AMDGPU driver in the kernel.

To Reproduce On Plasma: set scale factor to 1.3 for example run flameshot gui

Expected behavior Preview of both monitors

System Information Arch Linux community/flameshot 0.6.0-3 AMDGPU Xorg extra/qt5-base 5.13.0-7

$ flameshot -v
Flameshot v0.6.0
Compiled with Qt 5.12.1

I tried recompiling flameshot against Qt 5.13, with no success.

leonardopn commented 5 years ago

I have the same problem and with the same version of flameshot installed, plus the same amd configuration using manjaro KDE, here is an example of what print looks like:

2019-08-26_23-15

mmahmoudian commented 2 years ago

@Scrumplex & @leonardopn Sorry for getting back to this so late, but would you please confirm if you still have this issue in v0.10.1? Lots of improvements have been made since v0.6 and I wonder if this is still and issue.

Scrumplex commented 2 years ago

Sadly I can't check this anymore, as I don't have access to the hardware anymore and don't use Plasma anymore

acheronfail commented 2 years ago

I'm using

❯ flameshot --version
Flameshot v0.10.1
Compiled with Qt 5.15.2

and see this issue both in Plasma and i3.

On my screen, it appears that the view is shifted exactly 50% to the left.

When the screenshot view is active, the right half of my right monitor is pure grey, and if I select the whole region and take a screenshot, the black portion is ignored from the screenshot.

Though, you can see part of the issue here, since this is me selecting the whole two monitors, but the left half isn't taken in the screenshot since it's been cut off:

image

mmahmoudian commented 2 years ago

@acheronfail do you have any scaling or different resolution on your monitors?

acheronfail commented 2 years ago

@mmahmoudian I have two external monitors which are setup like the following:

# output DP-1
crtc 0
mode 3840x2160
pos 0x0
primary
rate 60.00
# output DP-3
crtc 1
mode 3840x2160
pos 3840x0
rate 60.00
JadenJSJ commented 2 years ago

@mmahmoudian This still happens, I use Manjaro Linux With KDE Plasma (Wayland) 1920 x 1080 + 1400 x 900 150 DPI

Issues I also have this issue #227

acheronfail commented 2 years ago

Alright, I think I can reproduce it!

If flameshot is running, and then I switch my display configuration, if I trigger flameshot again this issue occurs. Running killall flameshot, and then triggering flameshot again fixes the issue.

So I believe that flameshot must be saving the dimensions of the screen somewhere, and not updating them when the display configuration is updated.

FWIW, I use autorandr to update my displays, but I don't think that's a factor.