From 3ee3336ac2c5d194c8a1b344910ee1b7b4d0346b Mon Sep 17 00:00:00 2001 From: David Reveman Date: Fri, 1 Aug 2008 21:50:36 -0400 Subject: [PATCH] Make sure all pending sync replies are processed before closing display. --- hw/dmx/dmxinit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/dmx/dmxinit.c b/hw/dmx/dmxinit.c index be0f61476..9a5caf3ef 100644 --- a/hw/dmx/dmxinit.c +++ b/hw/dmx/dmxinit.c @@ -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);