mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 22:40:12 +01:00
Make sure all pending sync replies are processed before closing
display.
This commit is contained in:
parent
7903f53f78
commit
3ee3336ac2
1 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ void dmxCloseDisplay(DMXScreenInfo *dmxScreen)
|
|||
{
|
||||
RemoveEnabledDevice (dmxScreen->fd);
|
||||
|
||||
/* make sure all pending sync replies are processed */
|
||||
dmxSync (dmxScreen, TRUE);
|
||||
|
||||
XLIB_PROLOGUE (dmxScreen);
|
||||
XCloseDisplay (dmxScreen->beDisplay);
|
||||
XLIB_EPILOGUE (dmxScreen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue