flameshot-org / flameshot

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

GUI appears on wrong monitor (wayland) #3686

Open ParadoxLeon opened 4 months ago

ParadoxLeon commented 4 months ago

Flameshot Version

Flameshot v12.1.0

Installation Type

User repository (AUR)

Operating System type and version

EndeavourOS

Description

When I press print to take a screenshot flameshot opens on my second monitor every time.

Steps to reproduce

No response

Screenshots or screen recordings

No response

System Information

Operating System: EndeavourOS KDE Plasma Version: 6.1.3 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.10.2-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 31,3 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 2070/PCIe/SSE2 Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7C37 System Version: 1.0

jclsn commented 3 months ago

I am experiencing the same issue. Makes the application unusable on Wayland.

Operating System: Arch Linux KDE Plasma Version: 6.1.3 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.10.1-zen1-1-zen (64-bit) Graphics Platform: Wayland Processors: 16 × Intel® Xeon® CPU E5-1680 v4 @ 3.40GHz Graphics Processor: AMD Radeon RX 6600 XT

Goddard commented 3 months ago

Same issue here.

Flameshot v12.1.0 (-) Compiled with Qt 5.15.10 linux: 6.8.12-3-MANJARO manjaro: unknown

Operating System: Manjaro Linux KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.8.12-3-MANJARO (64-bit) Graphics Platform: Wayland Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor Memory: 30.5 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X670E AORUS PRO X System Version: -CF

natewu commented 3 months ago

Same issue here, keeps opening on my second monitor then I clicked it once and somehow now it only opens on my main monitor and wont focus on the correct monitor. I remember on X both monitors are focused so I could screenshot on both monitors but it appears that is missing too.

Operating System: Arch Linux KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.10.4-arch2-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600X 6-Core Processor Graphics Processor: AMD Radeon RX 7600

DennisDyallo commented 3 months ago

Happens on Windows 11 to, even though I have correctly set my Main Display.

ParadoxLeon commented 1 month ago

Current workaround (linux)

clone the repo git clone https://github.com/flameshot-org/flameshot.git and cd into it. change to fix_wayland_multiscreen with git checkout fix_wayland_multiscreen install build dependencies . and follow the build process from there on.

Done. When opening with a shortcut I get some short flickers sometimes but other than that it works :)

ParadoxLeon commented 1 month ago

follow up

I tested the changes with the current master branch. Everythg worked smooth, I get some short flickers sometimes when pressing the shortcut but nothing major.

branch fix_wayland_multiscreen will fix this Issue

Goddard commented 1 month ago

Doesn't work great for me.

What happens for me is it always launches on two of my three monitors. It is always the same two. Seems to just ignore the other.

It seems like it isn't even the correct two display images either.

So it shows the first monitor in the second place and the second monitor in the third place monitor. So seems to still have some issue.

terminal only shows this output.

./src/flameshot qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

ParadoxLeon commented 1 month ago

weird it say's the same for me but it works on my end...