flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

kubuntu 21.04 w/ Wayland, 2 screens: flameshot moves screen down

Open donbowman opened this issue 3 years ago • 9 comments

Flameshot version

0.9.0 (.deb from release page)

Describe the bug

i have just upgraded to kubuntu 21.04. After trying wayland I find flameshot does not work properly (after applying the .desktop fix from release notes). Specifically, I have 2 displays, one horizontal, one vertical.

$ xrandr
Screen 0: minimum 16 x 16, current 5280 x 2560, maximum 32767 x 32767
XWAYLAND0 connected 3840x1600+0+960 (normal left inverted right x axis y axis) 880mm x 370mm
   3840x1600     59.96*+
   ...
XWAYLAND1 connected 1440x2560+3840+0 right (normal left inverted right x axis y axis) 520mm x 320mm
   2560x1440     59.91*+
   ...

display

when i open flameshot, the left monitor shifts all content down (so the bottom half of the content vanishes). The right monitor does not allow screen shots

To Reproduce

it happens on all screenshots. It does not happen on X11.

Expected behavior

I expect no change in the screen information, just to be able to do a screenshot.

System Information

ubuntu 21.04 wayland kde plasma 5.21

donbowman avatar Apr 02 '21 01:04 donbowman

Do you have fractional scaling enabled?

borgmanJeremy avatar Apr 02 '21 01:04 borgmanJeremy

scaling is 100% on both displays

donbowman avatar Apr 02 '21 01:04 donbowman

Assuming that the capture is independent of the GUI restrictions, I wonder what flameshot full will capture. @donbowman Would you please test that as well?

mmahmoudian avatar Apr 02 '21 08:04 mmahmoudian

2021-04-02_10-08-screenshot_1

so attached is flameshot full

I have created 4 text windows (1 in upper left-1, 1 in lower-right-1, etc) to show where the coords are. the result appears correct.

donbowman avatar Apr 02 '21 14:04 donbowman

Ok, it seems my hunch and assumption were correct. the flameshot gui is not getting the correct dimensions from Wayland to draw that dimmed overlay. Let's hope this quick diagnostic step help @borgmanJeremy to track the issue down 👍🏼

mmahmoudian avatar Apr 02 '21 15:04 mmahmoudian

I also have this issue on manjaro with kde. running the latest flameshot from git.

33Fraise33 avatar Jul 13 '21 14:07 33Fraise33

@33Fraise33 would you please confirm that you are on Wayland or not. This is because I'm on Manjaro KDE Xorg with similar monitor setup as OP using flameshot v0.10.0 (from AUR) and I don't have this issue. For what it's worth, I haven't had this issue in any Flameshot versions with the same monitor setup and Manjaro KDE when using Xorg.

mmahmoudian avatar Jul 15 '21 13:07 mmahmoudian

Hi I have this on wayland yes. I use lots of flexdesks and I have this with every monitorsetup I try. As soon as I have more than my main monitor the capture window bugs out.

33Fraise33 avatar Jul 18 '21 09:07 33Fraise33

I'm not sure if this is the same bug or not. I do not have wayland, but a similar error occurs on this screen configuration. The image is shifted up. image

n-r-w avatar Sep 22 '22 14:09 n-r-w

@n-r-w would you please:

  1. confirm that you are using 100% scaling for all your monitors (Settings > Display and Monitor > Display Configuration > Global scale)
  2. indicate which monitor is your primary
  3. provide your OS and version
  4. provide which installation method you used (Snap, Flatpak, compile from source, apt/pacman/zypper/...)

mmahmoudian avatar Sep 27 '22 07:09 mmahmoudian

@n-r-w would you please:

  1. confirm that you are using 100% scaling for all your monitors (Settings > Display and Monitor > Display Configuration > Global scale)
  2. indicate which monitor is your primary
  3. provide your OS and version
  4. provide which installation method you used (Snap, Flatpak, compile from source, apt/pacman/zypper/...)

Global scale: 125% Primary monitor: Samsung C49RG9x Manjaro 22.0.0, KDE Plasma 5.25.5, KDE Framework 5.97.0, Kernel 5.15.65-1 Flameshot installed from official repository, version 12.1.0

n-r-w avatar Sep 27 '22 09:09 n-r-w

@n-r-w i don't think your issue is related to this thread. I believe it is more related to #564

mmahmoudian avatar Sep 30 '22 06:09 mmahmoudian