summaryrefslogtreecommitdiffstats
path: root/src/glx/mini/miniglx.c
diff options
context:
space:
mode:
authorJon Smirl <[email protected]>2004-07-16 04:27:00 +0000
committerJon Smirl <[email protected]>2004-07-16 04:27:00 +0000
commitdc8a7603a39bade5b7411e79d5773834b89bd023 (patch)
treecfb33cd2e312d038865277abd55b0ee262c1b348 /src/glx/mini/miniglx.c
parent84e6b16d8fcaaf676474488d369d2df0c2117160 (diff)
Miniglx clients now authorize with server DRM
Diffstat (limited to 'src/glx/mini/miniglx.c')
-rw-r--r--src/glx/mini/miniglx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index 6596c107b7d..44b156f3ab1 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -1091,6 +1091,14 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc)
err_extra = NULL;
if (drmGetMagic(fd, &magic)) goto done;
+
+ dpy->authorized = False;
+ send_char_msg( dpy, 0, _Authorize );
+ send_msg( dpy, 0, &magic, sizeof(magic));
+
+ /* force net buffer flush */
+ while (!dpy->authorized)
+ handle_fd_events( dpy, 0 );
version = drmGetVersion(fd);
if (version) {