hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

XDPH Not serving Cursor properly to Screenshare like OBS #170

Open sdooweloc opened 10 months ago

sdooweloc commented 10 months ago

XDPH is not properly conveying cursor information to screen share options such as OBS capture.

OBS is expecting the cursors to be sent as metadata so that it can toggle whether to show the cursor or not. This has the impact of being unable to hide the cursor in monitor capture, as well as application/window capture never showing a cursor.

Other wayland DE's have had and resolved similar issues such as KDE https://github.com/obsproject/obs-studio/issues/5446

Can this please be looked into? Especially cursor not showing in application capture is a huge interference to how I want/need to be able to use OBS for my use case.

Excerpt from conversation on OBS discord:

Obs' option to hide the cursor affects cursors provided to us by the xdg portal implementation. If it baked in the cursor than >that option wont do anything. Since that option doesnt do anything its probably a feature request to your xdg portal provider >to send cursors as metadata so the obs option will have an effect.

Cool. And that would in theory also take care of the app capture not having a cursor at all?

yes if they send the cursor metadata we will draw it for app capture as well.

OBS: 30.0.2-1 from Arch repos System: OS: Arch Linux Kernel: 6.6.10-zen1-1-zen DE: Hyprland hyprland-git 0.34.0.r45.b6516bad-1 from AUR Wayland GPU: AMD RX 6700 XT CPU: AMD Ryzen 7 7700X

Pipewire: 1.0.1-1 WirePlumber: 0.4.17-1 xdg-desktop-portal-hyprland 1.3.1-2