mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-10 23:33:46 +00:00
dri2: Invalidate window pixmaps
While a redirected window is flipped, its pixmap may still be used as and EGL image and should also get invalidated. When sending invalidate events for a window, also send the events for its pixmap. Signed-off-by: Ville Syrjälä <syrjala@sci.fi> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
e8fd23fad0
commit
4df65d247b
4 changed files with 7 additions and 5 deletions
|
|
@ -156,13 +156,13 @@ ProcDRI2Authenticate(ClientPtr client)
|
|||
}
|
||||
|
||||
static void
|
||||
DRI2InvalidateBuffersEvent(DrawablePtr pDraw, void *priv)
|
||||
DRI2InvalidateBuffersEvent(DrawablePtr pDraw, void *priv, XID id)
|
||||
{
|
||||
xDRI2InvalidateBuffers event;
|
||||
ClientPtr client = priv;
|
||||
|
||||
event.type = DRI2EventBase + DRI2_InvalidateBuffers;
|
||||
event.drawable = pDraw->id;
|
||||
event.drawable = id;
|
||||
|
||||
WriteEventsToClient(client, 1, (xEvent *)&event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue