HDTenEightyP/NetNews huggingface dataset:
From: rescorla@rtnmr.chem.yale.edu (Eric Rescorla)
Subject: Re: X protocols.
Organization: Rescorla for himself.
Date: Thu, 8 Oct 1992 15:12:02 GMT

In article <BvrvsB.Ho@constant.demon.co.uk> slangley@constant.demon.co.uk (Simon Langley) writes:
>Raum Pattikonda (raum@isoa3.ba.ttu.edu) wrote:
>: 
>: I would also like to know if there are any good books on X protocol internals.
>: 
>Try 'X Protocol Reference Manual' pub. O'Reilly & Associates ISBN 1-56592-008-2
>
>This is volume 0 of a series of X manuals that also covers Xlib.
Volume 0 especially looks a lot like Scheifler's Standard for the X
protocol. You may want to look at the version that comes with
X before you buy this particular O'Reilly book.
-Ekr

-- 
-------------------------------------------------------------------------------
Eric Rescorla, DoD#431 (Nighthawk S)              rescorla@rtnmr.chem.yale.edu
Former chemist now CM400 mechanic                 ekr@eitech.com(preferred)
   "Base 8 is just like base 10, really...if you're missing two fingers."
Newsgroups: comp.windows.x
From: djgray@rodan.acs.syr.edu (David James Gray)
Subject: XtAppInitialize??
Originator: djgray@rodan.acs.syr.edu
Organization: Syracuse University, Syracuse, NY
Distribution: ny
Date: Wed, 7 Oct 92 09:16:34 EDT


Hello,

	I'm having trouble with Xt[Va]AppInitialize. It doesn't seem
to honor the XmNx or XmNy values I give it.  It sets them correctly
for the shell widget but the position is not reflected on the display.
All other resources are set correctly. I _must_ be missing something very
basic here.

	Currently, each time I start up my application the toplevel
shell is placed roughly 10 pixels lower and 10 pixels further right than
it was the previous time I brought it up. I don't have trouble setting
other shell or dialog coordinates.

I'm using Motif 1.1.3 with X11R4 (NOT the OpenWindows X server) on
a SparcStation 2 with a standard 19 inch SONY (via Sun) monitor. 

Here is what I've been trying:
===============
  top_shell_w = XtVaAppInitialize( &app, APP_NAME, NULL, 0,
                                     &argc, argv, My_Fallbacks,
                                     XmNiconName, "My Icon Name",
                                     XmNtitle, title,
                                     XmNminWidth,  355, 
                                     XmNmaxWidth,  455,
                                     XmNminHeight, 355,
                                     XmNmaxHeight, 355,
                                     XmNx, 0,
                                     XmNy, 0,
                                     NULL ) ;
===============


Please reply to djgray@rodan.acs.syr.edu.

Thanks in Advance!!

Dave Gray
djgray@rodan.acs.syr.edu

Newsgroups: comp.windows.x
From: gfong@bellahs.com (Gary Fong RD)
Subject: Help with xdm & sun mit sample server
Organization: Bell Atlantic Healthcare Systems
Date: Thu, 8 Oct 1992 16:23:49 GMT


Info:
  Sun IPC (4/40) w/ SunOS 4.1.2
  MIT X11R5 p17
     w/ sun keyboard patch 920802 by maf@dtek.chalmers.se
     w/ XTrap extensions

I'm having problems with the termination of the X server via xdm.  Here's the
senario.  I have xdm running on the IPC managing only its local display. When
the server terminates either from logging out coupled with the true value of
DisplayManager*terminateServer or hitting the ^\ at the login prompt, xdm
hangs: the process still exists but X is no longer on the console.

I get these kinds of messages in xdm error log file:

(( This is after bringing it

    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded

(( This is after bringing it down via ^\ then up.  In this case, it actually
(( came up.  Sometimes it doesn't come up on my first try and sometimes it does

    XIO:  fatal IO error 32 (Broken pipe) on X server ":0.0"
	  after 75 requests (45 known processed) with 0 events remaining.
	  The connection was probably broken by a server shutdown or KillClient.
    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded

(( This is after bringing it down via ^\ and trying to bring it back up. This
(( looks like xdm is trying to bring the server up 4 times, failing each time.

    XIO:  fatal IO error 32 (Broken pipe) on X server ":0.0"
	  after 75 requests (45 known processed) with 0 events remaining.
	  The connection was probably broken by a server shutdown or KillClient.
    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded
    
    Fatal server error:
    Unsupported keyboard type -1
    
    error (pid 3984): IO Error in XOpenDisplay
    error (pid 3960): Display :0.0 cannot be opened
    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded
    
    Fatal server error:
    Unsupported keyboard type -1
    
    error (pid 3986): IO Error in XOpenDisplay
    error (pid 3960): Display :0.0 cannot be opened
    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded
    
    Fatal server error:
    Unsupported keyboard type -1
    
    error (pid 3988): IO Error in XOpenDisplay
    error (pid 3960): Display :0.0 cannot be opened
    DEC-XTRAP:  AddExtension assigned Major Opcode '132'
    DEC-XTRAP:  Vers. 3.2-0 successfully loaded
    
    Fatal server error:
    Unsupported keyboard type -1
    
    error (pid 3990): IO Error in XOpenDisplay
    error (pid 3960): Display :0.0 cannot be opened
    error (pid 3960): Display :0.0 is being disabled


Gary Fong
Bell Atlantic Healthcare System, Inc
gfong@bellahs.com
From: sundar@fiber-one.ai.mit.edu (Sundar Narasimhan)
Newsgroups: comp.windows.x
Subject: ELK on SGI machines?
Date: 14 Oct 92 23:04:30 GMT
Reply-To: sundar@ai.mit.edu
Organization: MIT Artificial Intelligence Laboratory

Hi: Has anyone made ELK run on an SGI 4D/25 GT? 
Thanks.
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x
Subject: Re: Average width for text.
Keywords: XLib
Date: 7 Oct 92 05:27:48 GMT
Organization: McGill Research Centre for Intelligent Machines

In article <1992Oct1.035709.8849@mel.dit.csiro.au>, jck@kimba.catt.citri.edu.au (Justin Kibell) writes:

> Unless I have missed it, I don't think you can get the average width
> of a char from any font or char structure like you can in windows (I
> am told).

What's the problem?  Why not just loop over all characters and compute
whatever sort of average you want?

More to the point, is this really a useful thing?  More likely what you
want is something like the average width per character over long
samples of English, or of C code, or of something else...

With all the different types of averages over various things, I think X
is correct in leaving it up to clients to compute whatever sort of
averages they may want.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x,comp.sys.sun.apps
From: rescorla@rtnmr.chem.yale.edu (Eric Rescorla)
Subject: Re: What would cause a window manager desktop to appear to freeze?
Organization: Rescorla for himself.
Date: Tue, 13 Oct 1992 19:50:03 GMT

In article <1992Oct13.182306.26593@cas.org> lvirden@cas.org (Larry W. Virden) writes:
>What type of an action might a client take that would 'freeze' a server from
>processing other requests until the window visibly appears?
Call XGrabServer();
-Ekr

-- 
-------------------------------------------------------------------------------
Eric Rescorla, DoD#431 (Nighthawk S)              rescorla@rtnmr.chem.yale.edu
Former chemist now CM400 mechanic                 ekr@eitech.com(preferred)
        "God gets off on a technicality. Film at 11" --CJ Silverio
From: tda10@cus.cam.ac.uk (Tim)
Newsgroups: comp.windows.x
Subject: Re: Console output for a Sun
Date: 16 Oct 92 21:27:22 GMT
Organization: U of Cambridge, England

In article <Bw5wIq.72o@netnews.jhuapl.edu>, heeres@uars_mag.jhuapl.edu (Ken Heeres) writes:
|> I am trying to run xdm on a sun console.  I have modified /etc/syslog.conf so
|> there is nothing being directed to the console.  I have started an xterm wit the
|> -C option.  I still will get some console output.  For example if I have a tape
|> error reading a dat drive.  What am I doing wrong?

Some things still write to /dev/console.  syslog is still a relatively new
feature, not everyone uses it.

Tim.
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x
Subject: Re: Setting Window CLASS name with Xlib
Date: 7 Oct 92 06:15:43 GMT
Organization: McGill Research Centre for Intelligent Machines

In article <1OCT199215511445@cvdv73>, fisk@cvdv73 (Tom Fisk, 2D-337 STM, 5-4341) writes:

> How do I set a window's CLASS name using only Xlib calls.

(I assume that's a question, in spite of the lack of a question mark.)
You'd set the WM_CLASS property on the window.  You probably would want
to use XSetClassHint to make your life a little easier.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: flee@synoptics.com (Frank Lee)
Newsgroups: comp.windows.x
Subject: Re: problems with OpenWindows2 / OpenWindows3
Date: 8 Oct 92 19:09:48 GMT
Article-I.D.: netnews.1992Oct8.190948.365
Reply-To: flee@synoptics.com
Organization: Synoptics Inc. Santa Clara, California.

In article 873@rcc.de, anja@rcc.de (Anja-Maria Seelig) writes:
>
>Hello,
>
>I've been developing my final study work with OpenWindows3 in XView on a 
>SPARCstation.
>Unfortunately, the program is to be run with OpenWindows2, too. 
>
>Running my program with OW2 results in many XView warnings and  finally in
>segmentation faults. :-(
>
>Here are some problems with OW2, I do not have with OW3:
>
>I cannot open a popup-window for a second time if it was destroyed by pushing 
>the pushpin.
>A '\n' in a notice-message-string is not evaluated.
>
>I get many warnings like:
> 
>Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_get
>Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_set
>....
>
>Help is very urgent! 
>
>Many thanks in advance! 
>-- 
>+------------------------------------------------------------------------+
>|  Anja-Maria Seelig             INTERNET : a@rcc.de                     |
>|  Heinrichstr. 42                                                       |
>|  4800 Dortmund 1                                                       |


Here are some suggestions :

Problem I : You could use FRAME_DONE_PROC to control your popup-window.
    For example :

	xv_create(Frame, FRAME_CMD,
		.....
		FRAME_DONE_PROC, vCloseSetup, NULL);

	...

	void vCloseSetup(subframe)
	Frame subframe;
	{
		xv_set(subframe, FRAME_CMD_PUSHPIN_IN, FALSE,
			FRAME_SHOW, 	FALSE, NULL);
		/* You can decide whether you want to destroy your window here */
	}

Problem II : This is a known bug for OW2.

Problem III : You are using some of the OW3 features which are not supported 
   		by OW2.  You can very easily to find out those by compile your
		program with OW2 include files.

Good luck.

Frank Lee
(408) 764-1628 (O)
flee@SynOptics.com

		
Newsgroups: comp.windows.x
From: malay@sae.com (Bob Malay)
Subject: NEC Model 95 & SunOS
Reply-To: malay@sae.com
Organization: Template Software
Date: Fri, 16 Oct 1992 17:07:59 GMT


I know this is not the appropriate place to post this - but I'm pretty sure
somebody out there has one of these printers - what printer driver do you use
and where can I get it????

Bob Malay

Xref: sparky comp.windows.x:17850 comp.windows.x.motif:6810
From: handeli@phoenix.ocf.llnl.gov (David I Handeli)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: widgets for push buttons
Keywords: motif push button widget
Date: 14 Oct 92 14:25:28 GMT
Followup-To: comp.windows.x
Organization: Lawrence Livermore National Laboratory

Motif push button widgets are square. How dull this is! Has anyone
written a push button widget that has rounded corners or is round?
If so, is the source available - this would be for our internal use
only! Thanks in advance.
From: mam70@ccc.amdahl.com (Michael Musta)
Newsgroups: comp.windows.x
Subject: Help!!! Missing stdout??????
Date: 11 Oct 92 22:23:08 GMT
Reply-To: mam70@juts.ccc.amdahl.com ()
Distribution: usa
Organization: Amdahl Corporation, Sunnyvale CA

I've written an application for X that uses 'printf' to show error messages.
Everything works fine if I run my application from a 'cmdshell' or 'xterm'
window but when I start my application from my 'openwin-init' file or from
my window manager's menu bar I lose STDOUT.  My printf statements do not show
up anywhere.  I've tried using 'fprintf' to stderr and still no output????
This has me stumped!   How does one handle a situation like this?  I need to
report error messages to the user.

                                                   --Thanks in advance
                                    
Xref: sparky comp.windows.x:17714 comp.windows.open-look:4089
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.windows.x,comp.windows.open-look
Subject: Re: MIT X11 under OpenWindows 3.0
Date: 10 Oct 1992 04:10:45 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: gandalf.think.com
Keywords: X11 OpenWindows MIT X-Windows

In article <1992Oct9.221219.8656@netcom.com> stevedav@netcom.com (Steve Davidson) writes:
>I have a requirement for two X11 files:
>
>/usr/local/lib/X11/libX11.a
>/usr/include/X11/X.h

>I have SunOS 4.1.2 with OpenWindows v3 which has its own
>implementation of X.  I cannot find the associated X11 files
>in OpenWindows v3.

Everything in OW is normally in /usr/openwin.  These two files are
/usr/openwin/lib/libX11.a (there's also a shared version) and
/usr/openwin/include/X11/X.h.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.windows.x
From: mece25q@elroy.uh.edu (Pakala, Rama R.)
Subject: Need recommendation for X on IBM-PC (ya, i've been thru' FAQ!)
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Houston
Date: Mon, 12 Oct 1992 21:44:00 GMT


I have gone thru' the FAQ list of X servers for IBM-PCs.  I would like to
hear from netters about their experiences with X servers on IBM-486s. Especially
the problems you have had, if any.

That would help me greatly in choosing  from the list.

Thanks.

Rama Pakala.

mece25q@jetson.uh.edu 

Xref: sparky comp.windows.x:17540 comp.sys.sun.apps:2165 comp.cad.cadence:393
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x,comp.sys.sun.apps,comp.cad.cadence
Subject: Re: X equivalent of the Sunview program "overview"?
Keywords: overview X11 Xview xview sunview
Date: 7 Oct 92 06:12:31 GMT
Organization: McGill Research Centre for Intelligent Machines

In article <1992Oct1.145348.22980@inmos.co.uk>, hughm@brwah.inmos.co.uk (Hugh McIntyre) writes:

> Does anybody know of an X equivalent of the Sunview program
> "overview"?

There is none.  In fact there cannot be any, except in a very
machine-dependent way, because the very notion is machine-dependent.
Consider what it would mean on an X terminal, for example - or any
network-remote connection, for that matter.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x
From: fox@pt0204.pto.ford.COM (Ken Fox)
Subject: Re: comp.windows.x: Getting more performance out of X.  FAQ.
Organization: The Internet
Date: Fri, 16 Oct 1992 08:59:17 GMT


kevin samborn writes:

> In my .xsession I set XUSERFILESEARCHPATH to ":$HOME/X/app-defaults/%N". 
> This allows me to put resources specific to Xt based applications 
> (including Motif and OLIT and resource heavy window managers) in a file
> called $HOME/X/app-defaults/"class-name".
> 
> So, for example, in my xterms, I have nothing in the file I xrdb, and
> have it all in $HOME/X/app-defaults/XTerm.

This works OK if you aren't running applications on remote machines...  One
of the most important things the resource database does is to provide a
*single* place to customize *any* application that you run *anywhere*.  IMHO
the benefit of this consistency far out-weighs the performance benefits of
having a user defined XUSERFILESEARCHPATH.

What would probably be a more fruitful approach would be to:

   1) selectively load resources into application cache from the X
      server when calling XOpenDisplay() -- this would require that you
      modify X to understand application names and classes when
      initiating the connection to the X server.

   2) allow applications to unload resources from their cache after
      they have initialized themselves.

I wonder what the performance increases would really be though?  My
.Xdefaults is 30K.  That means around 30K (comments and whitespace are
removed when loading) is duplicated for every client.  Since I usually have
about 8 clients up, that means 240K of duplicated resources.  This is not
very significant on my machine, but may make a difference on smaller
workstations or PCs.  The network time to pass around that 240K is also not
very significant on my machine, but may make a difference for people using a
serial line connection to their server.

Is there anybody who wants to make measurements of how performance affects
an application by removing all extraneous resources from their .Xdefaults?

-- 
Ken Fox (fox@pt0204.pto.ford.com)

313.594.4794
CAD/CAM Technology Section
CAD/CAM/CAE Process Integration
Ford Motor Company
Newsgroups: comp.windows.x
From: generous@sti.nasa.gov (Curtis Generous)
Subject: Re: different defaults for monochrome and color screen?
Organization: Goddard Space Flight Center
Date: Thu, 8 Oct 1992 12:11:50 GMT

wbm@hpuerca.atl.hp.com (Bill Morrison) writes:
>The xrdb(1) client has several pre-defined symbols that you can use
>to get the effect you want. In your .Xdefaults file, you could put
>something like:

>#ifdef COLOR
>  AppClass*background:                          lightgray
>  AppClass*highlightColor:                      tan
>  AppClass*logo*Background:                     CadetBlue
>#endif
>
>#if WIDTH == 1280
>  AppClass*labelFont:   -*-swiss 742-medium-r-normal-*-140-*-p-110-*
>#else
>  AppClass*labelFont:   -*-swiss 742-bold-r-normal-*-140-*-p-100-*
>#endif
>
>#if WIDTH < 1024
>  AppClass*logo*verticalOffset: 60
>  AppClass*textFont:      -*-helvetica-bold-r-normal-*-100-*
>#endif
>
>Refer to the xrdb(1) man page for a complete list of symbols and their
>use.
>
>--Bill Morrison
>  Hewlett-Packard Response Center - Atlanta
>  wbm@hpuerca.atl.hp.com

Is it possible to get this kind of functionality from the app-defaults file rather
than in the ~/.Xdefaults file?

Sorry if this issue has been talked over and over, but I still have not heard a
final answer on the subject.

--curtis
--
Curtis C. Generous
NASA STI
generous@nova.sti.nasa.gov
Xref: sparky comp.windows.x:17744 comp.windows.x.motif:6754
From: tchal@tmchome.UUCP (Thomas M. Chalfant)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: Re: keysym problems transporting X/motif application
Date: Fri, 09 Oct 92 21:38:52 EDT
Distribution: world
Organization: My house

stevens@scubed.com (Jeff Stevens) writes:

>   I am trying to transfer an executable program (X11R5patch16, motif1.1.4)
> to another site.  It works fine on our local network, but at the remote
> site I get errors like:
> 
> Warning: translation table syntax error: Unknown keysym name: osfUp
> Warning: ... found while parsing '	 <Key>osfUp:        ManagerGadgetTraverseU
> 
> Usually this warning means that the program can't find the XKeysymDB file.
> Both locations have this file in /usr/lib/X11.
[rest deleted]

Jeff,
Check to see if the contents of the other site's XKeysymDB file are the
same as yours.  We used to get the same errors when running an MIT compiled
source on a OpenWindows 3.0 system.  We finally realized the XKeysymDB file
on the OW3 system did not have any of the OSF keysyms defined.

The solution:
   Append the other site's XKeysymDB with the missing keysyms.  If you don't
   have the proper access to that directory, you may have to get someone
   with root access to do it for you.

   Alternately, if there are few users of your program, you could create a
   file called ".motifbind" in the home directory of all users of your
   program.  Put the same missing lines in this file.

Hope this helps!

Tom

Xref: sparky comp.windows.x:17759 comp.windows.x.motif:6766
From: weinhous@RadOnc.Duke.EDU (Marty Weinhous)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: help with motif ScrolledWindow - Please -
Date: 12 Oct 92 17:13:30 GMT
Reply-To: snow@castor.hahnemann.edu
Followup-To: comp.windows.x
Organization: Radiation Oncology, Hahnemann U, Phil PA, 215/448-8616
Originator: weinhous@roentgen.RadOnc.Duke.EDU

------------------------------------------------------------

Posted for a colleague.

***Please reply by e-mail to snow@castor.hahnemann.edu***

--------------------------------------------------------------------

greetings all,

I have a question about how access the functionality of the scrollbars
of a scrolledWindow widget of Motif. 

After I've created the scrolledWindow and the child it will be
managing, I wish to center the scrollbars on the child. I would have
thought that XmScrollBarSetValues would do this, but while it does
center the scrolbars, it doesn't update the child of the scrolled
window. If I access the scrollbars with the mouse, the new value is
used and the window is correctly redrawn. 

What is the proper way to accomplish this? Here is the code I thought
would accomplish the task:

void centerScrollBars(scrollw)
     Widget scrollw;
{
  int start,end,size,inc,page,value;
  Widget scrollBar1,scrollBar2;
  
  XtVaGetValues(scrollw,
		XmNhorizontalScrollBar,&scrollBar1,
		XmNverticalScrollBar,&scrollBar2,
		NULL);
  XtVaGetValues(scrollBar1,
		XmNminimum,&start,
		XmNmaximum,&end,
		XmNvalueChangedCallback, valueCallback,
		NULL);
  XmScrollBarGetValues(scrollBar1,&value,&size,&inc,&page);
  XmScrollBarSetValues(scrollBar1,(end-size-start)/2,size,inc,page);
  XtVaGetValues(scrollBar2,
		XmNminimum,&start,
		XmNmaximum,&end,
		NULL);
  XmScrollBarGetValues(scrollBar2,&value,&size,&inc,&page);
  XmScrollBarSetValues(scrollBar2,(end-size-start)/2,size,inc,page);
}

=======================================================================
Donald C. Snow         || snow@castor.hahnemann.edu    ||
Senior Systems Analyst || snow@hal.hahnemann.edu       ||            
Radiation Oncology     ||        (and)                 ||      	    
Hahnemann University   || gaston@drycas.club.cc.cmu.edu||      	    
=======================================================================

-----------------------------------------------------------------------

-- 

 Marty Weinhous, Ph.D.			weinhous@radonc.hahnemann.edu
 Radiation Oncology, Hahnemann U.
 Philadelphia, PA 19102,		215/762-8616
Xref: sparky comp.windows.x:17717 comp.windows.x.apps:1248 comp.windows.open-look:4091 comp.windows.x.motif:6734
From: malay@sae.com (Bob Malay)
Subject: xwd of an XVIEW Notice??
Reply-To: malay@sae.com
Organization: Template Software
Date: Wed, 14 Oct 1992 22:53:03 GMT


I need to get a window dump of an XVIEW notice but the XVIEW docs claim that
the "notice grabs the entire screen so no other windows or applications can
receive input..."  The XVIEW docs and the ANSWERBOOK docs contain XVIEW notices
that apparently have been dumped - how did they do it????

Bob Malay
malay@sae.com


Newsgroups: comp.windows.x