Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!boulder!sunybcs!bingvaxu!leah!itsgw!steinmetz!ge-dab!peora!cmpfen!bob From: bob@cmpfen.UUCP (Bob Breum) Newsgroups: comp.sys.atari.st Subject: Re: where is gem desktop resource? Summary: Don't assume that every GEM program is invoked by the GEM Desktop Message-ID: <374@cmpfen.UUCP> Date: 30 Dec 88 20:40:35 GMT References: <12375@hall.cray.com> <1274@atari.UUCP> Reply-To: bob@cmpfen.UUCP (Bob Breum) Organization: Computer Fenestrations, Lake Monroe, Florida Lines: 28 In article <1274@atari.UUCP> mui@atari.UUCP (Derek Mui) writes: >in article <12375@hall.cray.com>, rosenkra@hall.cray.com (Bill Rosenkranz) says: >> the AES wind_set() call to replace the desktop works just fine. but how >> can you set it back to what it was after a program exits? if allan's >> listening, i'd appreciate the "legal, official atari sanctioned" way. >> in lieu of that (i have not found any pointers/calls to do it), if anybody > > There is no function call to get the resource of the desktop. When an >application makes a wind_set(WF_NEWDESK) call, it doesn't need to reset it >back when it exits. When control returns to the desktop, the original >background will be restored. > This is correct as far as it goes. But there is a legitimate need to reset the revised desktop when the program has been called from a shell. Otherwise, the AES will attempt to redraw the specified desktop, but the resource for that desktop will have been released at the time that the program terminated. It is my understanding, although I haven't tried it, that wind_set(WF_NEWDESK) with an address of 0 will reset the desktop. Computer Fenestrations Bob Breum Post Office Box 151 {uiucuxc,hoptoad,petsd,ucf-cs}!peora!cmpfen!bob Lake Monroe, FL 32747 USA +1 407 322-3222 "C is the new BASIC" -- Computer Fenestrations Bob Breum Post Office Box 151 {uiucuxc,hoptoad,petsd,ucf-cs}!peora!cmpfen!bob Lake Monroe, FL 32747 USA +1 407 322-3222 "C is the new BASIC"