[PATCH] xwayland: Use drm buffers for cursors if available

Rui Tiago Cação Matos tiagomatos at gmail.com
Fri Feb 5 12:13:16 UTC 2016


On Fri, Feb 5, 2016 at 9:42 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> Btw. Rui, is there a reason to keep the shm pool fd open after a
> wl_buffer has been created from it? Most trivial demos just close the
> fd and destroy the pool once a wl_buffer has been created, keeping only
> the wl_buffer and the mmap around. The pool or fd are not needed to
> keep the memory available to both the Wayland server and client. But if
> you want to enlarge the pool, then you need the fd, naturally.

Some X clients cause the X server to realize a huge number of cursors
at the same time. For instance, to reach the fd limit I just need to
open 2 instances of ImageMagick's display tool.

Rui


More information about the xorg-devel mailing list