Path: utzoo!attcan!uunet!super!udel!gatech!cwjcc!hal!ncoast!jamiep From: jamiep@ncoast.UUCP (Jamie Purdon) Newsgroups: comp.sys.amiga.tech Subject: Re: Finding The Workbench Screen Summary: Find WBench? Follow Screen list & check bits Message-ID: <13231@ncoast.UUCP> Date: 10 Dec 88 14:43:34 GMT References: <1982@van-bc.UUCP> <7796@well.UUCP> Reply-To: jamiep@ncoast.UUCP (Jamie Purdon) Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 18 Sender: Any screen with the "WBENCHSCREEN" bit set in the screen structure is a "workbench" screen. This is the way "multiple wbench screen" hacks work. So, so far as checking this bit, you were correct. However, the 'screen list' does not start at YOUR screen. If there are screens behind yours then, yes, the 1st longword in your screen struct will be a link to another screen. *The* place to begin scanning the screen structs is at IntuitionBase->FirstScreen Unless you're simply checking if you're the "upfront" screen, you should probably forbid/permit around any "screen structure walking". (finishing DIGIpaint2....;-)