diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-02-19 13:41:49 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-02-19 13:41:49 (GMT) |
commit | 98179c2eb0bc81ab39b0b65d730bccbba5f07fd4 (patch) | |
tree | 13c46f5ecaeed1a5d59b4a2abec2f931d84c805b /xlib/xutil.c | |
parent | 0399234c3de3213b5bcd19d06ca35f1bd9cf9c18 (diff) | |
download | tk-98179c2eb0bc81ab39b0b65d730bccbba5f07fd4.zip tk-98179c2eb0bc81ab39b0b65d730bccbba5f07fd4.tar.gz tk-98179c2eb0bc81ab39b0b65d730bccbba5f07fd4.tar.bz2 |
[Tcl Bug 2954638]: Correct behaviour of manual page installer. Also added
armouring to check that assumptions about the initial state are actually valid
(e.g., look for existing input file).
Diffstat (limited to 'xlib/xutil.c')
-rw-r--r-- | xlib/xutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlib/xutil.c b/xlib/xutil.c index 103d995..d5e26eb 100644 --- a/xlib/xutil.c +++ b/xlib/xutil.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: xutil.c,v 1.4 2007/01/02 23:39:40 dkf Exp $ + * RCS: @(#) $Id: xutil.c,v 1.5 2010/02/19 13:41:49 dkf Exp $ */ #include <stdlib.h> @@ -71,6 +71,7 @@ XGetVisualInfo( int *nitems_return) { XVisualInfo *info = (XVisualInfo *) ckalloc(sizeof(XVisualInfo)); + info->visual = DefaultVisual(display, 0); info->visualid = info->visual->visualid; info->screen = 0; |