mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
Switch automatic composite update to WorkQueue
It is currently (ab)using the screen BlockHandler callback to do this. But this can cause problems with other extension as their block handlers might have executed before Composite's. And the operations Composite does might result in them wanting to change timeouts. Practically this caused problems for TigerVNC's VNC extension which failed to send out updates for Composite's screen updates.
This commit is contained in:
parent
43a0f9a5db
commit
1bd5d0a53c
3 changed files with 15 additions and 20 deletions
|
|
@ -387,6 +387,8 @@ compScreenInit(ScreenPtr pScreen)
|
|||
cs->pOverlayWin = NULL;
|
||||
cs->pOverlayClients = NULL;
|
||||
|
||||
cs->pendingScreenUpdate = FALSE;
|
||||
|
||||
cs->numAlternateVisuals = 0;
|
||||
cs->alternateVisuals = NULL;
|
||||
cs->numImplicitRedirectExceptions = 0;
|
||||
|
|
@ -442,8 +444,6 @@ compScreenInit(ScreenPtr pScreen)
|
|||
cs->ChangeWindowAttributes = pScreen->ChangeWindowAttributes;
|
||||
pScreen->ChangeWindowAttributes = compChangeWindowAttributes;
|
||||
|
||||
cs->BlockHandler = NULL;
|
||||
|
||||
cs->CloseScreen = pScreen->CloseScreen;
|
||||
pScreen->CloseScreen = compCloseScreen;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue