swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 343 forks source link

Time out X11 clipboard transfers after some seconds of inactivity #2710

Open Xyene opened 3 years ago

Xyene commented 3 years ago

Spinning this out from the discussion in https://github.com/swaywm/wlroots/issues/1497#issuecomment-771047288.

If we don't make forward progress on an X11 clipboard transfer in some number of seconds (Qt appears to use 5), we should assume the X11 client died, or won't ever respond. Ongoing transfers consume finite file descriptor resources for the Wayland client data devices, the exhaustion of which tend to cause compositor crashes.


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2710

emersion commented 3 years ago

Ref https://github.com/swaywm/wlroots/issues/2326 for the FD exhaustion issue.