diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-04-16 10:38:23 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2021-05-11 14:08:58 +0200 |
commit | cb61ecc7291cfbed2f76d4437cd7450b8e4dab00 (patch) | |
tree | e76d0eee3f30189c79ad0e937088f70a4dfee820 /xkb/ddxKillSrv.c | |
parent | cc596bcfb273eeab82ac3d59867668af8bad2abf (diff) | |
download | xserver-cb61ecc7291cfbed2f76d4437cd7450b8e4dab00.tar.gz |
xwayland/eglstream: Dissociate pending stream from window
Previously, we would have pending streams associated with top level X11
windows, keeping temporary accounting for the pending streams before
they get fully initialized for the xwl_pixmap which would be associated
with X11 pixmaps.
If the window content changes before the stream is ready, the
corresponding pending stream would be marked as invalid and the pending
stream would be eventually removed once the stream becomes ready.
Since commit affc47452 - "xwayland: Drop the separate refcount for the
xwl_pixmap", we no longer keep a separate reference counter for the
xwl_pixmap, but rather tie it to the X11 pixmap lifespan. Yet, the
pending stream would still be associated with the X11 toplevel window.
Dissociate the pending streams from the X11 toplevel window, to keep it
tied only to the xwl_pixmap so that we can have:
- pixmap <-> xwl_pixmap
- xwl_pixmap <-> pending stream
Of course, the pending streams remain temporary and get removed as soon
as the ready callback is triggered, but the pending streams are not
linked to the X11 window anymore which can change their content, and
therefore their X11 pixmap at any time.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1156
Diffstat (limited to 'xkb/ddxKillSrv.c')
0 files changed, 0 insertions, 0 deletions