HDTenEightyP/NetNews huggingface dataset:
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Mapping A Window To A Process
Date: 13 Nov 92 04:41:03 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Sat, 7 Nov 92 10:53:06 GMT
Message-Id: <1992Nov7.105306.20140@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.windows.x

In article <Bx7oBI.5IG@cs.columbia.edu>, haupt@cs.columbia.edu (Marcus E. Haupt) writes:

> I would like to know if anyone has come across a method to findt the
> UNIX pid of a process given only a window (Xlib data struct pointer)
> that is known to have been created by that process.

At the Xlib level, a window (data type Window) is not a data structure
pointer, or at least usually isn't.  In the MIT sample implementation,
and presumably most other implementations, the Window datatype is just
a 32-bit unsigned integer.

Given a window ID (the 32-bit value) and a server (window IDs are
meaningless without a server to refer them to), there is little you can
do in most cases.  It would be possible, by hacking on the server, to
find out everything possible about the connection.  However, this may
not be much.  For a TCP connection, all you can get is the address and
port number of the remote end; for a UNIX-domain connection, if they
exist, not even that much can be determined.

In any case, there may not be any "UNIX pid"; the client process may
not be running on a UNIX machine.  It could be VMS, for example, or it
could be a Mac running Planet X (I think that's the name), or it could
be a DOS box running whatever it's called that does the analogous thing
for DOS....

> Or, conversely, given a pid known to have initiated a connection with
> the X Server, is there any way to find out what the Window Tree for
> that process looks like?

Depends on how dirty you want to get your hands.  First, we have to
assume that the connection in question is still open.  Second, we have
to decide what to do if the process has more than one X connection
open.  Once those issues have been addressed, we have to grub around in
the Xlib data structures inside that process (which means reading its
address space, which involves system-dependent and usually messy and
fragile kludges) to find (a) what server is on the other end of that
connection and (b) what the resource ID mask and base values are.  We
then walk the window tree on the server in question, looking for window
IDs that fit the mask and base we found....

In short, it's so hard that you don't want to do it if you can help it,
and you will have to learn a *lot* more about system-level software
before you have much hope of making it work.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: scornd4@solomon.technet.sg (Joomeng Quek)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XV source code needed
Date: 12 Nov 92 20:07:47 GMT
Distribution: fj
Organization: National University of Singapore

Date: Sat, 7 Nov 1992 03:04:34 GMT
Message-Id: <1992Nov7.030434.21119@nuscc.nus.sg>
Newsgroups: comp.sources.wanted,comp.windows.x

from the very source itself, John Bradley at
linc.cis.upenn.edu
From: trw@unixland.natick.ma.us (Tim Weil)
Newsgroups: fj.mail-lists.x-window
Subject: X11R4<1.1> linking problems
Date: 12 Nov 92 13:39:22 GMT
Distribution: fj
Organization: Unixland Public Access Unix  (508) 655-3848

Date: Fri, 6 Nov 1992 22:59:56 GMT
Message-Id: <1992Nov6.225956.9132@unixland.natick.ma.us>
Newsgroups: comp.windows.x

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
From: unisql!kk@cs.utexas.edu (Kerry Kimbrough)
Newsgroups: fj.mail-lists.x-window
Subject: X Window Protocol Specs (?)
Date: 13 Nov 92 19:29:10 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Fri, 13 Nov 92 09:40:00 CST
Message-Id: <9211131540.AA28719@hyundai.unisql>


   > I am studying computer communications, especially OSI.  I would like
   > to take a look at another implementation of communicating structured
   > data between dissimilar systems.  I believe (hope) that X Window
   > Protocol is somewhat more efficient than ASN.1 / BER.

   I'm not sure what ASN.1/BER is, but I suspect you are a little confused
   about precisely what the X protocol is.  X assumes that some lower
   level provides a reliable bidirectional byte-stream

For once, der estimable Mouse is awry. The original query is sensible.

ASN.1/BER is an encoding method which would be applicable to an OSI
application level protocol such as X. Probably, the X encoding is more
efficient than the equivalent BER encoding. When compared with BER, the X
encoding is probably similar to Sun XDR/RPC in terms of its relative pro's
and con's.
From: shah@fnsony.fnal.gov (Hemant Shah)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Toolkit Error: Can't Open display!!!
Date: 7 Nov 92 02:02:26 GMT
Distribution: fj
Organization: Fermi National Accelerator Laboratory, Batavia, IL

Date: 5 Nov 92 21:57:33 GMT
Message-Id: <1dc5cdINNkdl@fnnews.fnal.gov>
Newsgroups: comp.windows.x.apps,comp.windows.x

In article <1d9meiINNfh@sacomm.schulz.unisa.edu.au>, cowleym@sacomm.schulz.unisa.edu.au () writes:
|> 
|> Trying to run any X-windows application from a window on our Ultrix machine, 
|> on my VMS VAXstation, over DECNET, as myself (not the superuser) I always 
|> get the message:  
|> 
|> 	(This is so compicated, I hope it's clearer than mud to you)
|> 
|> Xlib:  connection to "saccs1::0.0" refused by server
|> Xlib:  Client is not authorized to access server
|> X Toolkit Error: Can't Open display
|> 
|> I am running Motif on a VAXstation 3100.
|> I have set Security Options in the Session Manager, authorizing myself as user
|> over DECNET to the Unix machine. (If I authorize ROOT in my Session Manager's
|> Security options, and become the superuser on the Ultrix machine, I CAN run the 
|> X-windows applications)
|> 
|> My .login file on the Ultrix machine (DS5000), has setenv DISPLAY saccs1::0.0
|> to indicate DECNET connection.
|> 
|> 
|> An application I want to run might be the archie client:
|> 
|> -rwxr-xr-x  1 root      1550836 Nov  4 16:56 xarchie*
|> 
|> and may use :
|> 
|> -rw-rw-r--  1 root       195364 Nov 4 16:56 /usr/lib/X11/libezMenu.a
|> -r--r--r--  1 root       18066  Nov 4 16:56/usr/local/lib/app-defaults/Xarchie
|> 
|> Why can't I run it?
|> Something amiss with the X Toolkit?
|> Everyone has read access to the /usr/lib/libX* libraries and
|> /usr/include/mit/X11 files
|> 
|> What more do I have to do?
|> 
|> ---
|> AusMail: Margaret Cowley, UniSA, Schulz Building, Kintore Ave.,Adelaide,SAust.
|> E-Mail : cowleym@schulz.unisa.edu.au, Phone:+61 8 301 1617, FAX:+61 8 301 2602

On you VMS system type following command:

$ set display/create/node='nodename'/trans=decnet

and then start Xapplication on remote system.

Hope this helps :-)

-- 
-------------------------------------------------------------------------------
Hemant Shah                            | All the opinions expressed are my own
Fermi National Accelerator Laboratory  | and does not necessarily reflect
Systems Integration Group              | those of Fermilab.
E-mail :shah@fnal.fnal.gov             |
 Voice : (708) 840-8071	               | I haven't lost my mind
   Fax : (708) 840-2783                | it's backed on tape somewhere.
-------------------------------------------------------------------------------
From: dekock@shannon.ee.wits.ac.za (Nick de Kock)
Newsgroups: fj.mail-lists.x-window
Subject: QUESTION: Network overhead of X compared to VT-100
Date: 6 Nov 92 11:34:22 GMT
Distribution: fj
Organization: Electrical Engineering, University of the Witwatersrand

Date:  2 Nov 92 10:19:25 GMT
Message-Id: <dekock.720699565@shannon>
Newsgroups: comp.windows.x

Hi - OK I don't know very much about X so maybe this is an extremely
dumb question. If it is can someone gently point out my misconception:

I got into an argument with a co-worker about two different approaches to
a problem. The problem (in a nutshell) involves running a text retrieval
app over a wide area network. The application runs fine on our LAN
- we ran X terminal clients on SunSparc 2s to an HP9000/817.

Now he says the X windows sessions are too bandwidth-intensive for use 
when the same application is run across our WAN and we must use a VT-100-
type emulation instead. His justification is that X involves graphics.

Now this doesn't make sense to me - surely the overhead would be not that
much different to VT-100. The windows are generated locally (aren't they?)
And it's a text-oriented app - there are no images involved except for a
single logo when the app starts up.

I know that people use X windows for WAIS and such over the Internet so
it can't be that bandwidth intensive. Can someone clear this up?

-- 
Nick de Kock, High Voltage Group            
Electrical Engineering, Wits University                 
Johannesburg, South Africa - dekock@shannon.ee.wits.ac.za
From: aefros@cc.utah.edu (ALEXEI (ALYOSHA) EFROS, JR -- (801) 272-5948)
Newsgroups: fj.mail-lists.x-window
Subject: xinit on DECstation
Date: 8 Nov 92 07:56:30 GMT
Distribution: fj
Organization: University of Utah Computer Center

Date: 4 Nov 92 05:58:00 GMT
Message-Id: <3NOV199222581820@cc.utah.edu>
Newsgroups: comp.windows.x

Hi Xperts!

Can anybody help me with this one? We have a DECstation running Ultrix
and X11R4. It works fine with XPrompter and other default junck in ttys 
file. However, we wanted it to start up on console (in text mode) and
then run xinit to start X. (That will give us more flexibility in chosing
window managers, etc.).  
  We have been able to make it start up in text mode by messing around
with /etc/ttys BUT it somehow cannot start X. When I run either xinit or
directly Xws it says: "can't open device". 
   Any ideas?

Thanks in advance,
-Alyosha
From: scornd4@solomon.technet.sg (Joomeng Quek)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Compiling aXe. anything wrong?
Date: 12 Nov 92 20:23:37 GMT
Distribution: fj
Organization: National University of Singapore

Date: Sat, 7 Nov 1992 02:59:28 GMT
Message-Id: <1992Nov7.025928.20192@nuscc.nus.sg>
Newsgroups: comp.windows.x

: cc -c -O   -I/usr/include  -I.     -DHELPDIR=\"/usr/lib/X11\" AxeEditor.c
: "AxeEditor.c", line 1728: object undefined
: Compilation failed
: *** Error code 1
: make: Fatal error: Command failed for target `AxeEditor.o'

First of all, is AxeEditor.c in the directory, is the file ok?
From: jlaurila@colossus.cs.hut.fi (Jari Laurila)
Newsgroups: fj.mail-lists.x-window
Subject: How to open a x-window?
Date: 6 Nov 92 01:30:11 GMT
Distribution: fj
Organization: Helsinki University of Technology, CS lab

Date: 5 Nov 92 10:36:02 GMT
Message-Id: <1992Nov5.103602.19995@cs.hut.fi>
Newsgroups: comp.windows.x


	I would like to program in X-windows, but so far I've been
	unable to open a single window. I tried to find somesort of
	a manual, but I found none. 

	Most of you probably know how to do it, so would someone
	be so kind and tell me? I would also appreciate general 
	X-programming tips.  


	Jari Laurila.
From: singg@alf.uib.no (Kurt George Gjerde)
Newsgroups: fj.mail-lists.x-window
Subject: ** Return focus (???)
Date: 10 Nov 92 11:01:36 GMT
Distribution: fj
Organization: University of Bergen, Norway

Date: 9 Nov 92 23:06:37 GMT
Message-Id: <1992Nov9.230637.25668@alf.uib.no>
Newsgroups: comp.windows.x

1)  Is it possible when an X-windows program is started that the (input)focus is 
    returned to the xterm that started it??

2)  Is it possible to "redirect" all keyboard-input that comes (to the X-windows
    program) to the xterm that started the X-program??


Anyone??


Kurt.
From: snail@lsl.co.uk
Newsgroups: fj.mail-lists.x-window
Subject: Re: Want to overlay bitmap onto a pixmap
Date: 6 Nov 92 08:51:40 GMT
Distribution: fj
Organization: Laser-Scan Ltd., Cambridge

Date: 5 Nov 92 14:59:46 GMT
Message-Id: <1992Nov5.155947.2619@lsl.co.uk>
Newsgroups: comp.windows.x

In article <RPB.92Nov3144841@brain.psy.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
> I have an application where a 3D wireframe object is rendered
> into a 1 bit deep pixmap and a shaded version is rendered into
> an 8 bit deep pixmap.  I'd like to overlay the wireframe image
> onto the shaded image, and have the wire frame appear in white
> on top, with the original black parts of the wireframe not
> altering the shaded image.  I've tried using an XCopyArea
> with a GCFunction of GXor but that doesn't seem to work.

OK, first I'll asume that white pixels = 1 in your 1 bit deep pixmap
                          black pixels = 0 in your 1 bit deep pixmap

1) First we need to mask out (remove) all bits in the 8 bit pixmap where the
   white pixels exist. so:-

   GCFunction of GXandInverted and do XCopyArea.

2) Now we must OR our values of white into the 8 bit pixmap. So:-

   GCFunction of GXor and do XCopyArea.

Note that I haven't address the fact that you're dealing with 8 bit and 1 bit
pixmaps. All I'm doing is addressing the fact you must remove data before you
plot data.

Note, that you could also use XCopyPlane for each of teh 8 planes. This is 
probably not what yu want and will be slower than 1 XCopyArea.
-- 
snail@lsl.co.uk      

Thanks for Voting Clinton.
If didn't like Clinton, Thanks for voting Perot.
If you voted Bush, welcome to the real world.
:-)
From: sbhatia@mary.fordham.edu (SABU)
Newsgroups: fj.mail-lists.x-window
Subject: how to create a button using XLIB????
Date: 10 Nov 92 19:55:04 GMT
Distribution: fj
Organization: Fordham University

Date: Thu, 5 Nov 1992 14:57:00 GMT
Message-Id: <5NOV199210570324@mary.fordham.edu>
Newsgroups: comp.windows.x


Hi,

    Could anybody out there guide me as to how one goes about
creating buttons using XLIB. The issues that I am very interested in
are for ex-: who supplies the colormap, the caller or does the
button widget create it's own colormap. How to change the color of the button
when user points to it and presses the mouse button. How do
you handle expose events, like for example, I create a button to quit.
I place it on some window, but that window gets covered by another window
when I raise this window I would like to restre the contents of
the button.


thanks,

sabu

////////////////////////////////////////////////////////////////////////
/   Internet:  SBHATIA@mary.fordham.edu                                /
/   BITnet:    SBHATIA@FORDMULC                                        /
/                                                                      /
/                                                                      /
////////////////////////////////////////////////////////////////////////
From: sapwdf!wohler@bloom-beacon.MIT.EDU (Bill Wohler)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Window System bibliography
Date: 9 Nov 92 22:39:46 GMT
Distribution: fj
Organization: SAP AG, Walldorf, Germany

Date: 9 Nov 92 13:53:37 GMT
Message-Id: <4076@sapwdf.UUCP>
Newsgroups: comp.windows.x

klee@wsl.dec.com (Ken Lee) writes:
>I wanted the bibliography to be useful to readers, not necessarily to
>publishers.  Do readers really want the O'Reilly books listed
>separately; alphabetically by author?  Or does anyone really care?

>I was under the impression that most readers consider the "Definitive
>Guides" to be a set and prefer them listed together.

hiya ken,

  contrary to your desires, listing them as a set is only useful for
  publishers and not readers as the publisher already knows what books
  are in the set, along with the ISBN numbers ;-).  who do you know
  that have ordered the entire o'reilly set in one go?  seriously, when
  ordering the books, one needs the information for each book
  separately.


Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
From: william@lanai.cs.ucla.edu (William Cheng)
Newsgroups: fj.mail-lists.x-window
Subject: Tgif-2.12-patch12 is available on export...
Date: 4 Nov 92 19:50:53 GMT
Distribution: fj
Organization: UCLA, Computer Science Department

Date: 4 Nov 92 07:16:25 GMT
Message-Id: <1992Nov4.071625.551@cs.ucla.edu>
Newsgroups: comp.windows.x

I've just put tgif-2.12-patch12 (12th patch for tgif-2.12) in the
following places for anonymous ftp:

	export.lcs.mit.edu:/contrib/tgif-2.12-patch12.Z
	cs.ucla.edu:/pub/tgif/tgif-2.12-patch12.Z

The patch is also posted to comp.sources.bugs.

Please uncompress and then apply the patch with
'patch -p -N < tgif-2.12-patch12'.
Here's a short list of added features/bug fixes.

1)  Fix a bug that causes PostScript stack overflow.  This could occur when
    printing files (black/white or color) containing xpm objects.
2)  Clears the PostScript stack when printing drawings with EPS objects so that
    certain buggy EPS files (such as the ones generate by xgrabsc) work.
3)  Tgif used to allocate black and white colors for internal use.  These
    colors are freed during initialization to allow the possibility of
    displaying pixmap of 256 colors.  (Please define DONTFREECOLORS in the
    DEFINES compile options to disable calls to free colors on buggy X servers.)
4)  Merge prtgif into tgif to save space.  Tgif will now take all the command
    line options that prtgif used to take; in addition, the -print option turns
    tgif into prtgif.  Thanks to Germano Caronni <caronni@nessie.cs.id.ethz.ch>
    for the suggestion.
5)  Fix a malloc bug in spline.c, poly.c, and polygon.c.  Again, thanks to
    Germano Caronni <caronni@nessie.cs.id.ethz.ch> for the bug fix.
6)  Fix a couple of bugs relating to VMS and that sometimes objects are not
    drawn when tgif comes up.  Thanks to Mats Bergstr"om
    <KOSU_MATSB@routh.kosufy.lu.se> for the code fixes.  Also included in
    this distribution is another example of a VMS makefile, VMS_MAKE_TGIF.COM,
    contributed by Mats Bergstr"om.

(running 'sum' on tgif-2.12-patch12.Z on a SUN4 should get: 52993  63)

Please send bug reports to william@cs.ucla.edu.
-- 
Bill Cheng // UCLA Computer Science Department // (310) 645-8328
3564-C Boelter Hall // Los Angeles, California 90024 // USA
william@CS.UCLA.EDU      ...!{uunet|ucbvax}!cs.ucla.edu!william
From: marc@Athena.MIT.EDU (Marc Horowitz)
Newsgroups: fj.mail-lists.x-window
Subject: building X with a strict ANSI cpp
Date: 9 Nov 92 22:18:01 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <9211091948.AA03361@carbonara>
Reply-To: Marc Horowitz <marc@MIT.EDU>
X-Usmail: Marc Horowitz, 38 8th Street #7, Cambridge, MA 02141
X-Phone: 617-492-5509
Date: Mon, 09 Nov 92 14:48:42 EST

(please also respond via email, as I do not regularly read
comp.windows.x.)

I'm sure this has been seen before, as I can't be the first person to
run into this problem.  The cpp code at the top of Imake.tmpl is not
legal C:

#ifndef XCOMM
#define XCOMM #
#endif

# in a macro definiton is the stringification operator, and must be
followed by an argument name.  As far as I can tell, there isn't any
way to get # to be in the expansion of a cpp macro.  Is editing all of
the files to replace XCOMM with something else the only solution?  Or
is there something better?

		Marc
From: cqyang@ponder.csci.unt.edu (Cui-Qing Yang)
Newsgroups: fj.mail-lists.x-window
Subject: HELP: DECwindow font format
Date: 11 Nov 92 00:11:46 GMT
Distribution: fj
Organization: University of North Texas, Denton

Date: 5 Nov 92 17:43:41 GMT
Message-Id: <1992Nov5.174341.12163@mercury.unt.edu>
Newsgroups: comp.windows.x

I need to convert some of font files from the standard X format (.bdf or .snf)
into DECwindow font format (.dwf). Does anyone know if there's such a program
(running under Ultrix)? If so, where can I get it? Thanks in advance for any
help.

Cui-Qing Yang

Dept. of Computer Science
University of Norht Texas
cqyang@ponder.csci.unt.edu
From: johnson@spectra.com (boyd johnson)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X for VMS...xdvi,xview,etc...???! (SUMMARY)
Date: 12 Nov 92 20:43:49 GMT
Distribution: fj
Organization: Spectragraphics Corporation

Date: Fri, 6 Nov 92 21:44:35 GMT
Message-Id: <1992Nov6.214435.11052@spectra.com>
Newsgroups: comp.windows.x,comp.os.vms

In article <1992Nov4.002509.22200@spectra.com> johnson@spectra.com (boyd johnson) writes:
>
>I have a somewhat urgent need to find out VMS
>equivalents to common Unix X commands, such as setting the DISPLAY
>variable to another display or getting the X modifier map table
>(xmodmap -pk) of the VMS system.  Any ideas?
>
>I know one option is to go to a Unix system and set my display for the
>VMS system, but I need it for a VMS only site.
_______________________________________________________________________

Thanks to all who replied.  Here is the answer to the DISPLAY problem.

To get output from "there" to appear "here" you can do the following

here>  Set host there
there> Set display /node=here /create -
	   /transport=[DECNET | TCPIP | LOCAL]
there> Run sys$system:Vue$master
_______________________________________________________________________

And for the xmodmap problem:

IN the latest Version of Motif on VMS (5.5) you have the xmodmap
.xsetroot xset ..  utilities.

> As for xmodmap, the PathWorks product includes a modmap utility.  
> I don't know if there are free equivalents to this.
_______________________________________________________________________

There were also rave reviews for TGV products and service.

-- 
======== Boyd Johnson    nosc!spectra.com!johnson  San Diego, Ca. ========
From: c23mkb@kocrsv01.delcoelect.com (Mahesh Bagade)
Newsgroups: fj.mail-lists.x-window
Subject: Which version of x server am I running?
Date: 12 Nov 92 14:41:32 GMT
Distribution: fj
Organization: Delco Electronics Corp.

Date: 6 Nov 92 21:58:37 GMT
Message-Id: <1992Nov6.215837.23500@kocrsv01.delcoelect.com>
Newsgroups: comp.windows.x


Dear x-users,

How do I find out which version of X server am I running?

Thanks for any pointers...

Mahesh
c23mkb@kocrsv01.delcoelect.com