Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.amiga Subject: Re: Window movement between screens Message-ID: <8703290734.AA27016@cory.Berkeley.EDU> Date: Sun, 29-Mar-87 02:34:29 EST Article-I.D.: cory.8703290734.AA27016 Posted: Sun Mar 29 02:34:29 1987 Date-Received: Sun, 29-Mar-87 18:09:43 EST Sender: daemon@ucbvax.BERKELEY.EDU Lines: 21 >Here's a puzzle for you- > >I want to move a window from one screen to another. >So I unlink the window from the source screen's linked list >starting off SourceScreen->FirstWindow. I then proceed >to link it into the destination screen's linked list of windows. >I also point the window's back pointer to its Screen at the >destination screen. All this sorounded by Forbid()/Permit(). Any visible portions of the window use the screen's memory rather than a separate region (thus, having a window as big as the screen in the screen does not use any more memory than a screen without a window... unless it gets obscured by other windows). In anycase, this is why your window didn't move. It simply is not as simple as that. Also, although you might have surrounded it with Forbid() and Permit(), you would also have to get an exclusive lock on both screens, their layer list, etc.... (I'm not sure how to do this myself). -Matt