obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

No mouse cursor in Wayland window capture on KDE

Open thecookie94 opened this issue 3 years ago • 5 comments

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/Fldnw8K5q3Jb7DnG

OBS Studio Crash Log URL

No response

Expected Behavior

When I set up a window capture with the mouse cursor enabled it captures the mouse cursor as well

Current Behavior

When I set up a window capture with the mouse cursor enabled the mouse cursor doesn't get captured. Mouse cursor capture in a screen capture session works just fine

Steps to Reproduce

  1. start obs (doesn't matter if it's the flatpak version or tytan's from the AUR) in a plasma wayland session
  2. add a window capture with the mouse cursor capture checkbox checked
  3. no mouse cursor on the canvas nor in the stream/recording output ...

Anything else we should know?

Archlinux Wayland Plasma 5.23.1, xdg desktop portal installed&updated, as is xdg desktop portal kde&pipewire

@GeorgesStavracas asked me to tag them

thecookie94 avatar Oct 23 '21 08:10 thecookie94

Can confirm with OBS 27.1.3 from flathub on neon unstable distribution.

glaubersm avatar Nov 03 '21 13:11 glaubersm

Same behavior here on Arch with Plasma 5.23.5 and OBS 27.1.3

ghost avatar Feb 01 '22 14:02 ghost

This does not look like our bug, the same code is used for monitor and window capture and it works for monitor capture. Adding some debug information on fedora 35 and it seems that kde simply never passes valid cursor information to window captures.

I recommend you file a bug upstream to kde.

kkartaltepe avatar Apr 21 '22 02:04 kkartaltepe

Created KDE bug report: https://bugs.kde.org/show_bug.cgi?id=452960

ghost avatar Apr 24 '22 23:04 ghost

@kkartaltepe Could you point me to some resources that contain an example of valid cursor data?

mashuptwice avatar Jul 28 '22 17:07 mashuptwice

KDE appears to have fixed the bug on their end for Plasma 5.26 with this MR.

X-m7 avatar Sep 22 '22 08:09 X-m7

Correct, let's close this

GeorgesStavracas avatar Sep 22 '22 11:09 GeorgesStavracas