diff options
author | faith <faith> | 2000-01-21 16:07:02 +0000 |
---|---|---|
committer | faith <faith> | 2000-01-21 16:07:02 +0000 |
commit | 4fd84f44e56a60fe9f739417e6c8b005f48c9eb5 (patch) | |
tree | 31fdb2929cbf59cf980997d90d8dfc8abcce552b | |
parent | 8b0ac7ab4774bc0224d1dd13ebb0018fbb05873d (diff) |
Allow client to request arbitrary size segment
-rw-r--r-- | xc/lib/X11/XF86SMT.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xc/lib/X11/XF86SMT.c b/xc/lib/X11/XF86SMT.c index aacd37b9b..efb92eb3f 100644 --- a/xc/lib/X11/XF86SMT.c +++ b/xc/lib/X11/XF86SMT.c @@ -124,6 +124,8 @@ Bool XF86SmtQueryVersion(Display *dpy, int *majorVersion, int *minorVersion) return True; } +#include <stdio.h> + Bool XF86SmtUseExtension(Display *dpy, int *majorVersion, int *minorVersion) { char *size; @@ -132,7 +134,7 @@ Bool XF86SmtUseExtension(Display *dpy, int *majorVersion, int *minorVersion) int grant_size; char *buf; /* Determine if SMT is requested */ - if (!(size = getenv("XFREE86SMT"))) return False; + if (!(size = getenv("XF86SMT"))) return False; /* Determine if SMT if available */ if (!XF86SmtQueryExtension(dpy, NULL, NULL)) return False; @@ -144,8 +146,11 @@ Bool XF86SmtUseExtension(Display *dpy, int *majorVersion, int *minorVersion) /* Switch from local transport to SMT */ - if (!XF86SmtOpen(dpy, 0, &grant_size, &buf)) return False; - if (_X11TransSmtOpen(dpy->trans_conn)) return False; + fprintf(stderr, "Calling XF86SmtOpen =================================\n"); + if (!XF86SmtOpen(dpy, atoi(size), &grant_size, &buf)) return False; + fprintf(stderr, "Calling SmtStart ==================================\n"); + if (_X11TransSmtStart(dpy->trans_conn, buf, grant_size)) return False; + fprintf(stderr, "Finished calling SmtStart =========================\n"); if (majorVersion) *majorVersion = majorV; if (minorVersion) *minorVersion = minorV; |