🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38029

Re: XView application without olcursor?

#38029
From: Joshua Osborne
Date: Tue, 13 Mar 1990 20:28
26 lines
2156 bytes
In article <132607@sun.Eng.Sun.COM> hvr@sun.UUCP (Heather Rose) writes:
>Is there a way to allocate server pixmaps as sharable objects?  i.e. one
>client allocates a pixmap as "read-only" so other clients could use it.
>That would make the problem much easier to solve.
Yes.  I did it for xtrek sometime last year (I mucked around w/ xtrek so much
it needed around 300 pixmaps, and there was a full second pause anytime anyone
new was added to the game...).

From what I remember: do access checks change the shutdown mode to (someting
like) RetainPerminant, create Pixmaps (and any other perminant objects), then
hang a property off the root window called XTREK_PIXMAPS which should be
created to be of type PIXMAP (or XA_PIXMAP, or someting like that), contact
tell the xtrek server to go for it, then exit.  O, of corse if there was aready
a XTREK_PIXMAPS and it had the right number of Pixmaps I skiped the creation
step (unless given a force-it argument).
(there is also a RetainTempory that can be used to remove things when you are
done, but something seemed wrong about it so I ignored it).

For XView you will probbly want to fork off a process that exec's a program to
create the Pixmaps.
-- 
           stripes@eng.umd.edu          "Security for Unix is like
      Josh_Osborne@Real_World,The          Mutitasking for MS-DOS"
      "The dyslexic porgramer"                  - Kevin Lockwood
"Don't try to change C into some nice, safe, portable programming language
 with all sharp edges removed, pick another language."  - John Limpert
Technical Details
Message-ID: <1990Mar13.202818.13321@eng.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ogicse!caesar.cs.montana.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!stripes
References: <5452@crdgw1.crd.ge.com> <132555@sun.Eng.Sun.COM> <5818@crdgw1.crd.ge.com> <132607@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ogicse!caesar.cs.montana.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!stripes
From: stripes@eng.umd.edu (Joshua Osborne)
Newsgroups: comp.windows.x
Subject: Re: XView application without olcursor?
Message-ID: <1990Mar13.202818.13321@eng.umd.edu>
Date: 13 Mar 90 20:28:18 GMT
References: <5452@crdgw1.crd.ge.com> <132555@sun.Eng.Sun.COM> <5818@crdgw1.crd.ge.com> <132607@sun.Eng.Sun.COM>
Sender: news@eng.umd.edu (The News System)
Organization: Maryversity of Uniland, College Park
Lines: 26