HDTenEightyP/NetNews huggingface dataset:
From: berry@athos.pei.com (Berry Kercheval)
Newsgroups: comp.windows.x
Subject: Re: MS-DOS X-windows? Where?
Date: 4 Nov 92 16:54:18 GMT
Reply-To: berry@pei.com
Organization: Protocol Engines, Inc., Mt. View, California

>>>>> On 4 Nov 92 00:48:36 GMT, jharvey@csulx.weber.edu (Just me) said:
Justin>      I noticed that you can get X-windows for Macintosh, Unix, VMS
Justin> and also MS-DOS, but all the packages I have found for DOS are
Justin> commercial.  Are there any public domain X systems?? And if so,
Justin> where can I find them?


As far as I know there aren't any public domain OR freely
distributable (they aren't the same...)  X Servers that run under
MS-DOS. 

However, since I have written one commercial version and it's been
more than a year since I, um, severed connections with that company,
I've been contemplating doing a freely distributable version based on
(most likely) the MIT R5 sample server, the djgcc DOS version of GCC
and ka9q/pcip/packet driver software, all freely available.

I'm not promising anything, but I'm kind of interested in the level of
interest out there, and what features are MUST HAVES, such as hot-key
to DOS, local clients, WINDOWS support (yecch) and so on.

If anyone interested sends me a brief note I will tabulate the results
in some way and post a summary of "what people really want" from a
MS-DOS X Server.

Who knows, I may even do it!

  --berry

--
Berry Kercheval :: berry@pei.com :: Protocol Engines, Inc.  Mt. View, CA
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x
Subject: Imake on non-Unix systems
Date: 10 Nov 1992 11:23:11 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

Did you try to port Imake and its configuration files to operating systems
other than (any flavor of) Unix? I am most interested in your story,
whether you were successful or not. Please let me know!

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
Newsgroups: comp.windows.x
From: trw@unixland.natick.ma.us (Tim Weil)
Subject: X11R4<1.1> linking problems
Organization: Unixland Public Access Unix  (508) 655-3848
X-Newsreader: Tin 1.1 PL3
Date: Fri, 6 Nov 1992 22:59:56 GMT

X11R4<1.1>/ESIX 5.3.2D - Porting Problem (Xengine)
--------------------------------------------------

I'm attempting to move some X11 demo programs from HP/9000 720
workstation (HPUX 8.07) to my humble '386 20 Mhz running 5.3.2D.
Talk about downgrading your system!  The exercise is mostly to getg
more familiar with 'X' programming & portabilitiy problems.

I've acquired Xaw.h & Xmu.h & Xt.a includes & libraries & here's where
I'm stuck.  If I use 'cc' for compiling I get a link error -

        __divsi3 unresolved external in X11.a

Sources have informed me that this linking library comes from 'gcc'
which they suspect was used to compile my X11.a library.  So, when
I compiled with 'cc' & linked with 'gcc' I got no compile errors
but the following executable crash (after creating the Xengine window)

X Error of failed request:  BadFont (invalid Font parameter)
  Major opcode of failed request:  56 (X_ChangeGC))
  Minor opcode of failed request:  0
  Resource id in failed request:  0x2afa685e
  Serial number of failed request:  1111
  Current serial number in output stream:  16

OK...so I have some porting problems...the font in question is a
54 point 'afga' which comes with the code & has been added to the
directory /usr/lib/X11/fonts/misc.

Incidentally, when I tried compiling with 'gcc' there were too manyjy
compilation errors for me to want to try untangling.

Question: Does anyone else have a ported version of Xengine I could'ntt
          investigate?  Or maybe I should just go fishing insteadd

Timothy.Weil(@)dialcom.tymnet.comm
Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: X standard for CopyArea
Summary:  XCopyArea is indeed overlap-safe
Organization: PictureTel Corporation
Date: Wed, 11 Nov 1992 14:23:38 GMT

In article <10NOV199210563988@alpha.sunquest.com> djp@alpha.sunquest.com (Dan Parslow, ext. 2556) writes:
>
>If the source and destination of a call to CopyArea are on the
>same drawable, and they overlap,... will
>the copy be performed "safely" so that the destination rectangle,
>after CopyArea returns, is exactly what the source rectangle was
>before the copy? 

Yes.
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Multi-screen X server
Organization: McGill Research Centre for Intelligent Machines
Date: Fri, 13 Nov 92 18:04:27 GMT

In article <1992Nov12.151615.19008@osf.org>, daniel@moonshine.osf.org (Daniel Dardailler) writes:

> I'm looking for references of multi screen X servers, any hardware,
> but preferably sun, hp, or 486.  [...]

> I used to have one where you could say at startup time: "X -2" (for 2
> screens) and then open connections to either unix:0.0 or unix:0.1

I did something similar to the MIT server: a -multidisp option that let
it run multiple displays (not multiple screens on one display) on a
single hardware display, hijacking two keyboard keys to control
switching among the X displays.  It wouldn't be hard to adapt the
techniques to a multiple-screen paradigm such as you describe.

This was for R4.  I've not done anything like it for R5.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x
From: svdhara@rodan.acs.syr.edu ()
Subject: X11 libraries
Organization: Syracuse University, Syracuse, NY
	The error message I get while doing "make" is
	get_wmShellWidgetClass  not found
	get_applicationShellWidgetClass not found
Date: Thu, 5 Nov 92 16:28:03 EST

	Obviously,it is looking for some library containing those
	two functions.I searched the libraries and couldnt find it.
	Can anybody tell me where to look for those two functions?

	I give the functions again:
	get_wmShellWidgetClass
	get_applicationShellWidgetClass
	My email address:svdhara@mailbox.syr.edu

Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Using X over the modem???
Organization: McGill Research Centre for Intelligent Machines
Distribution: na
Date: Tue, 10 Nov 92 06:36:12 GMT

In article <1992Nov8.200137.19985@newstand.syr.edu>, jdlin@rodan.acs.syr.edu () writes:

> I install Linux and Xfree386 on my machine.  After I using the kermit
> and modem to connect to a remote host, I try to execuate a remote X
> application.  But I always got the following error message:

>      window: Base frame not passed the parent window in environment.
>      Cannot create base frame. Process aborted.

That sounds as though you're getting a SunView application rather than
an X application.  Check your path.

However, fixing that won't help much, because kermit over a normal
modem connection is not going to let you run X over it.  You need
connectivity at the network transport level appropriate to whatever the
X applications are trying to use - which on a Sun is probably TCP, for
which you'd need SLIP or PPP or some such on both your machine and the
remote machine.

There do exist protocols for running X over slow lines.  One of them
(XRemote) is, last I heard, being used as the basis for a Consortium
effort to develop a standard for such things; I do not know what the
current state of this effort is, but I'm fairly sure that it's
currently bleeding-edge technology...and if you were ready to get into
that can of worms, you wouldn't have needed to ask what you did.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: jmpierso@ens-lyon.fr (Jean-Marc Pierson)
Newsgroups: comp.windows.x
Subject: Image anytype in X
Date: 4 Nov 92 16:57:49 GMT
Reply-To: jmpierso@ens-lyon.fr
Organization: Ecole Normale Superieure de Lyon

Hello world,

I am currently doing an X application using graphics.
I need to put an image (sun raster or any other format) in a canvas.

What could I do ?

Any ideas appreciated,
		Jean-Marc.
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: sizeof(int) == ?
Organization: McGill Research Centre for Intelligent Machines
Date: Fri, 13 Nov 92 18:01:02 GMT

In article <1992Nov12.083615.5375@ericsson.se>, etxmesa@eos.ericsson.se (Michael Salmon) writes:
> In article <1992Nov11.124252.4372@spcvxb.spc.edu>, 4carroll_j@spcvxb.spc.edu writes:

>> I have what I believe to be a very basic question about the
>> X-Windows distribution source code.  Does int always mean a 32-bit
>> integer?  [...]

> There are no rules about the lengths of integers except:
> sizeof(long) >= sigeof(int)
> and
> sizeof(int) >= sizeof(short)

Not quite.  It's also guaranteed that sizeof(short) >= sizeof(char),
that unsigned types are the same size as their signed variants (and
have the same representation for the values that both can take on), and
that char is at least 8 bits, short at least 16, and long at least 32.
(Note that the minimum sizes in bits do not place any restrictions on
the results of sizeof().  It would be entirely legal - though perhaps
stupid - to build an implementation that used 32-bit values as its
quanta and made char, short, int, and long all 32 bits wide, thus
making sizeof(short)==sizeof(int)==sizeof(long)==1.)

Of course, all that is strictly ANSI.  Pre-ANSI, there was no guarantee.

As for the original question, X probably assumes int's at least 32 bits
and may assume it's exactly 32.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: marcs@slc.com (Marc San Soucie)
Newsgroups: comp.windows.x.intrinsics
Subject: Events For Destroyed Widgets Cause Crashes
Date: 11 Nov 92 00:08:47 GMT
Article-I.D.: slc.1992Nov11.000847.23642
Organization: Servio Corp, Beaverton Oregon, US

We've had a few coredumps in some of our applications, which appear to be
caused by the dispatching of Expose events to destroyed widgets. The
widgets try valiantly to refresh themselves, but since their memory has
been freed, they crash.

This happens when a stack of Expose events arrives after an earlier event
has invoked a callback which destroys the widget for which the pending
Expose events are intended.

Examination of the code in Event.c (both X11R4 and X11R5) shows that Xt 
does not check to see whether a widget has ben destroyed before sending it 
events, such as via CompressExposures.

Am I reading the code wrong, or is this a bug?

    Marc San Soucie
    Servio Corporation
    Beaverton, Oregon
    marcs@slc.com
From: melby@dove.yk.Fujitsu.CO.JP (John B. Melby)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: XtMain or XtAppMain..Help!!
Date: 12 Nov 92 02:51:12 GMT
Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.
In-reply-to: cs_nlg@lub001.lamar.edu's message of 7 Nov 92 10:38:57 JST

>        What is the difference between XtMainLoop and XtAppMainLoop ?
>Can I interchange.... What is the idea behind this App ?

XtMainLoop was made obsolete in R4 and is provided as a compatibility
routine, but it will not work properly unless the compatibility routine
XtInitialize has been called.

Most of the new routines which begin with "XtApp" require an application
context as an argument.

An application context is used to store information about one or more
displays, allowing one to manage multiple displays in a single event
loop. (That is, unless an XIOError happens on one of the displays.
Has anyone come up with a good solution to this problem, besides
calling the main loop from within the XIOErrorHandler?)  I suppose it
would also be possible to create a multi-threaded client using multiple
application contexts.  (Is this actually feasible?)

-----
John B. Melby
Fujitsu Limited, Yokohama
melby@yk.fujitsu.co.jp
From: okeefe@cs.Buffalo.EDU (Paul O'Keefe)
Newsgroups: comp.windows.x.intrinsics
Subject: How to get PointerMotion w/o ButtonMotion events?
Date: 10 Nov 92 03:31:10 GMT
Organization: State University of New York at Buffalo/Comp Sci
Originator: okeefe@dubhe.cs.buffalo.edu


I only want PointerMotion events when NO buttons are pressed.

Solutions I know:

1) Override the PointerMotion translation when a button is pressed.
   For speed, I bypass the translation manager,
   so I'd have to remove the event handler while a button is down.

Questions:

Will the translation manager let be define seperate handlers for
ButtonMotion and PointerMotion so that ButtonMotion events won't
trigger both handlers?

Is there some other neat trick to get this behavior?
Newsgroups: comp.windows.x.intrinsics
From: drmres27@suze.usl.edu (Mejia Pablo)
Subject: Re: Window Titles
Organization: Univ. of Southwestern Louisiana
Date: Thu, 5 Nov 1992 23:09:11 GMT

The window title comes from, for shells:

  XtNtitle

This defaults to the name of the widget.  But it can be changed to
something else.

Pablo Mejia
pjm@srl.cacs.usl.edu
Newsgroups: comp.windows.x.intrinsics
From: petera@yoyo.fiu.edu (Ancin Xavier Peter)
Subject: asciiTextWidget: how to save?
Organization: Florida International University, Miami
Distribution: usa
Date: Wed, 11 Nov 1992 21:48:14 GMT

I have created an asciiTextWidget with the type file.
I want to save the file after the changes are made. When
I call the function XawAsciiSave(/* the text widget */)
I get a core dump. The manual says that I need to pass a
asciiSrcObject as the parameter. As asciiTextWidget creates
the source and sink automatically, I have only the asciiText widget.

Any help will be appreciated. 

Thanks
Ancin
From: steve@sep.Stanford.EDU (Steve Cole)
Newsgroups: comp.windows.x.intrinsics
Subject: transparent backgrounds?
Date: 13 Nov 1992 10:05:11 GMT
Organization: Stanford Exploration Project
Distribution: world
NNTP-Posting-Host: taal.stanford.edu

I have a box filled with a bunch of scrollbars. I'd like
to be able to give the box a backgroundPixmap, and have
this pixmap be visible. This doesn't work now because the
scrollbars cover it up. Is there some way to set the
backgroundPixmap or background of the scrollbars to be
transparent, so that the box pixmap will be visible?

One solution would be to chop the pixmap up into pieces
and set the backgroundPixmap of each scrollbar to be one of
the pieces. But this seems very hard. Is there an easier way?
Thanks for any suggestions.
-----------------------------------------------------------------
Steve Cole  (steve@sep.stanford.edu, apple!sep!steve)
Department of Geophysics, Stanford University, Stanford, CA 94305
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Q: dpy db merging w/another db
Date: 10 Nov 1992 08:04:37 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

In article <1992Nov09.164507.23338@rchland.ibm.com>,
shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall) writes:
|> Unfortunately, I can't seem to figure out how to do this.  Does anyone
|> have
|> a way to correct my problem, that is, a ``correct'' way to merge the 
|> display database with another database and then replace the display's
|> with
|> the newly created merged database?

Hmm, hmm, did you give XtScreenDatabase or XtDatabase a try? According to
the Intrinsics Standard these functions give you the resource database
associated with a particular screen resp. display. However, I don't know if
you can replace it by some other database, like:

	XrmDatabase dpy_db = XtDatabase (dpy);
	XrmMergeDatabase (other_db, &dpy_db);

Perhaps someone else can shed some more light on this topic.

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
Newsgroups: comp.windows.x.intrinsics,comp.windows.x
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: Dragging pointer into popup causes problem
Organization: Open Software Foundation
Date: 10 Nov 92 13:22:52

In article <BxHCp6.2I0@acsu.buffalo.edu> okeefe@cs.Buffalo.EDU (Paul O'Keefe) writes:

   My main app widget implements Tek-style crosshairs with event handlers
   for PointerMotion and CrossingEvents.

   If I drag the pointer into a popup window, ButtonMotion events continue
   to be reported to the main app widget even though no grab is in effect.
   Why?

ButtonPress causes an implicit grab to be in effect.  The grab is
(faulty memory here) in GrabModeAsync.  You will still get the
enter and leave events and you might be able to transfer the grab
using those.

--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
Newsgroups: comp.windows.x.intrinsics
From: okeefe@cs.Buffalo.EDU (Paul O'Keefe)
Newsgroups: comp.windows.x.intrinsics,comp.windows.x
Subject: Dragging pointer into popup causes problem
Date: 10 Nov 92 03:07:53 GMT
Organization: State University of New York at Buffalo/Comp Sci
Originator: okeefe@dubhe.cs.buffalo.edu


My main app widget implements Tek-style crosshairs with event handlers
for PointerMotion and CrossingEvents.

If I drag the pointer into a popup window, ButtonMotion events continue
to be reported to the main app widget even though no grab is in effect.
Why?
Xref: sparky comp.windows.x.intrinsics:499 comp.windows.x.motif:7328
From: tim@appenzell.cs.wisc.edu (Tim Theisen)
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.motif
Subject: Re: using float data types via resources?
Date: 9 Nov 92 16:30:06 GMT
Organization: U of Wisconsin Madison - Computer Sciences

root@atinc.uucp (Operator) writes:
>I would like to have the user pass in floating point values using
>the arg list when creating the widget.  The values never appear in
>the widget's instance record.  When my initialize method is called,
>I find that the appropriate fields are trashed.
> 
>/****** if I set these resources in the application , I get bad results ****/
>/***  both foo.foop.p_minvalue & foo.foop.p_maxvalue are trashed  **/
> 
>    Arg args[5];
>    argcnt = 0;
>    XtSetArg(args[argcnt], XtNminvalue, 200.0); argcnt++;
>    XtSetArg(args[argcnt], XtNmaxvalue, 1000.0); argcnt++;
>    XtCreateManagedWidget( "foobar", fooWidgetClass, parent, args, argcnt);
> 
>Can anyone shed some light?

I followed the example in the Athena widgets document for setting float args
and wrote the following macro.  This is included in my ghostview program and
has worked everywhere:

#define XtSetFloatArg(arg, n, d) \
    if (sizeof(float) > sizeof(XtArgVal)) { \
        XtSetArg(arg, n, &(d)); \
    } else { \
        XtArgVal *ld = (XtArgVal *)&(d); \
        XtSetArg(arg, n, *ld); \
    }

Hope this helps,  ...Tim

          Tim Theisen           Systems Programmer
Internet: tim@cs.wisc.edu       Department of Computer Sciences
    UUCP: uwvax!tim             University of Wisconsin-Madison
   Phone: (608)262-0438         1210 West Dayton Street
     FAX: (608)262-9777         Madison, WI   53706
From: blshyu@nctu.edu.tw
Newsgroups: comp.windows.x.intrinsics
Subject: Question about pixmap
Date: 5 Nov 92 06:56:35 GMT
Organization: National Chiao Tung University
X-Newsreader: TIN [version 1.1 PL6]


  I am trying to set resources of command widget and find this problem:
When I set the backgroundPixmap resource to a bitmap file supplied in the
X11R5 include/bitmaps, say, root_weave, the program gets the message:

Warning: No type converter registered for 'String' to 'Pixmap' conversion.

and the background is draw by the background color.

  Can you tell me what this warning message means and how to overcome this
problem?

-----------------------------------------------------------------------------
B. L. Shyu                                        <blshyu@ccnews.nctu.edu.tw>
National Chiau-Tung University
From: rodney.jones@canrem.com (rodney jones)
Newsgroups: comp.windows.x.intrinsics
Subject: xaw command wid.label
Date: 10 Nov 92 01:32:05 GMT
Reply-To: "rodney jones" <rodney.jones@canrem.com>
Distribution: comp
Organization: Canada Remote Systems

HELP!!!

Is there a way to update a command widget's label without getting that
annoying flash. I have managed to create a fairly impressive
fill-in form entry routine using a series of command widgets within a
form widget. This requires that the currently active widget's label
(data field) be updated on every character keystroke. I have even
managed to create a block cursor out of a label widget that roams the
entire form and takes on the label of the character below it. The only
problem is that i have not figured out a way to update just one
character in the command widget's label or to update the label without
that annoying flash caused when setting the label resource using
XtVaSetValues. Any advice would be appreciated.

Rodney Jones
Forbes Broadcast Services Ltd.

Rodney.Jones@canrem.com
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Xref: sparky comp.windows.x.intrinsics:492 comp.windows.x.motif:7282
From: ware@oboe.cis.ohio-state.edu (Peter Ware)
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.motif
Subject: Re: using float data types via resources?
Date: 6 Nov 92 17:06:34 GMT
Article-I.D.: oboe.WARE.92Nov6120634
Organization: Ohio State Computer Science
Originator: ware@oboe.cis.ohio-state.edu

Unfortunately, you cannot initialize a float resource unless you
register a String to Float converter.  As far as passing in the when
you create the widget, the following is from the Xt FAQ:

----------------------------------------------------------------------
16. How do I pass a float value to XtSetValues?
----------------------------------------------------------------------

First, what is going wrong is the structure for an Arg is (essentially)
	typdef struct
	{	
	    String	name;
	    long	value;
	} Arg;

and the code:
	Arg	arg;

	XtSetArg (arg, "name", 3.2)

expands to
	Arg	arg;

	arg.name = "name";
	arg.value = 3.2;

you can see that with normal C type conversions, the arg.value
gets the integer "3" instead of the floating point value "3.2".  When
the value is copied into the widget resource, the bit pattern is
wildly different than that required for a floating point value.  So,
how to get around this?

There are two choices.  The first just directly copies the value and
the second uses a union to get around the problem.  Instead of using
XtSetArg(), try the following (you may need to use memcpy() instead of
bcopy()):

	Arg	arg;
	float	value;

	arg.name = "name";
	value = 3.2;
	if (sizeof (value) > sizeof (arg.value))
		arg.value = &value;
	else
		bcopy (&value, &arg.value, sizeof (value));

The second approach yields:
	Arg	arg;
	union {
		int	int_value;
		float	float_value;
	} value;

	value.float_value = 3.2;
	XtSetArg (arg, "name", value.int_value);

Although the safe thing to do is to check that sizeof(float) <= sizeof
(arg.value), just as before.
--
Pete Ware / Ohio State University /		228 Bolz Hall  (614) 292-7318
           ware@cis.ohio-state.edu		2036 Neil Ave.
           (h) (614) 538-0965			Columbus, OH 43210
Welcome William Patrick Ware to the world!  Born 10/21/92, 8lbs 6.2oz (3.83kg)
Newsgroups: comp.windows.x.intrinsics