flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Multi-monitor resolution issue on KDE6 Wayland

Open AgentLoneStar007 opened this issue 11 months ago • 8 comments

Flameshot Version

Flameshot v12.1.0 image

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Arch Linux 6.7.9-arch1-1 (64-bit)

Description

Hi. So since I've upgraded to KDE Plasma 6 and Wayland, I've had an issue with taking a screenshot. When I go to take one, the view window is up quite a bit higher than it should be. (Example in the screenshots section.)

I would say it was the addition of the portrait mode monitor, but this issue only started occurring when I upgraded Plasma, and switched to the Wayland compositor.

Steps to reproduce

  • Update to Plasma 6 and up.
  • Switch to the Wayland compositor.
  • Take a screenshot or run flameshot gui

Screenshots or screen recordings

(A screenshot of my monitors. This view is the entirety of my main monitor. Notice it's only the upper corner of my main monitor and the upper right side of my secondary monitor.) image

System Information

Output of uname -a: Linux Bob-Linux-Gaming 6.7.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 x86_64 GNU/Linux`

System Info from Plasma: image

I have one 3440x1440 monitor as my main monitor, and a 1920x1080 monitor next to it on the left in portrait mode. image image

AgentLoneStar007 avatar Mar 10 '24 00:03 AgentLoneStar007

Got a similar issue with Garuda (Arch-based) after the KDE6 Wayland update. I've got two ultrawide displays, both in landscape mode on top of each other:

image

When I tried to flameshot gui, the flameshot overlay shows only on the bottom display, but with the top display content.

Pic before gui execution:

image

Pic after gui execution:

image

joaociocca avatar Mar 11 '24 17:03 joaociocca

I was able to resolve the issue partially by running the command:

WAYLAND_DISPLAY="" flameshot gui

But using this method also prevents Flameshot from getting keyboard input, so you're forced to use your mouse.

AgentLoneStar007 avatar Mar 12 '24 13:03 AgentLoneStar007

Someone suggested on another issue to use Window Rules https://github.com/flameshot-org/flameshot/issues/3525#issuecomment-1984999549 - it works, but the performance takes a serious hit.

joaociocca avatar Mar 12 '24 13:03 joaociocca

Unfortunately, I don't think I can use the window rule fix because of my monitor layout.

AgentLoneStar007 avatar Mar 13 '24 13:03 AgentLoneStar007

Unfortunately, I don't think I can use the window rule fix because of my monitor layout.

how about if you try making it a window of 1920x2520? That would take the whole height of your left portrait monitor and the whole width of both displays.

joaociocca avatar Mar 13 '24 13:03 joaociocca

how about if you try making it a window of 1920x2520? That would take the whole height of your left portrait monitor and the whole width of both displays.

Thank you. This did work. This is the window rule I'm using for Flameshot: image

Also, should I close this issue now, or is it still technically a bug?

AgentLoneStar007 avatar Mar 15 '24 13:03 AgentLoneStar007

Also, should I close this issue now, or is it still technically a bug?

as I understand, that is only a workaround. I'd keep the issue open.

joaociocca avatar Mar 15 '24 13:03 joaociocca

For reference: I'm using KDE 6.X.X on X11... and I have the exact same problem.

This seems to be a 6.X.X issue to me.

TheFrenchGhosty avatar May 01 '24 18:05 TheFrenchGhosty