aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2006-04-03 07:31:27 +0000
committerDave Airlie <airliedfreedesktop.org>2006-04-03 07:31:27 +0000
commit808a678d85d2d4486187d779dcf8a6e38cd884db (patch)
treeb76ffe5e46715c457038a81b2587be90901314a8 /src
parentd61c1cc7c99dd5beaeeea481b5ecba5548de1981 (diff)
do a drm lock/unlock sequence after the client close
Diffstat (limited to 'src')
-rw-r--r--src/glx/mini/miniglx_events.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glx/mini/miniglx_events.c b/src/glx/mini/miniglx_events.c
index 6f3f3a17947..969398bc16f 100644
--- a/src/glx/mini/miniglx_events.c
+++ b/src/glx/mini/miniglx_events.c
@@ -38,7 +38,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* $Id: miniglx_events.c,v 1.5 2005/08/31 01:24:01 airlied Exp $ */
+/* $Id: miniglx_events.c,v 1.6 2006/04/03 07:31:27 airlied Exp $ */
#include <assert.h>
@@ -155,7 +155,10 @@ static void shut_fd( Display *dpy, int i )
er->xdestroywindow.serial = 0;
er->xdestroywindow.send_event = 0;
er->xdestroywindow.display = dpy;
- er->xdestroywindow.window = (Window)i;
+ er->xdestroywindow.window = (Window)i;
+
+ drmGetLock(dpy->driverContext.drmFD, 1, 0);
+ drmUnlock(dpy->driverContext.drmFD, 1);
}
}