🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6678

Careful with wMgrPort!

#6678
From: Gregory Stein
Date: Mon, 04 Aug 1986 22:10
15 lines
1228 bytes
Just a note to application writers...

In an application I am writing, I used the GetWMgrPort call to get the
port of the entire screen so that I could drag a gray region around.
It works fine until you drag a window around.  Then, the gray region
won't appear.  To fix it, I click on a window's title bar to select it,
and the gray region will appear when I want to drag my region.  After
snooping around, I found that dragging a window will set the wMgrPort's
clipRgn to empty!  Nothing will appear when you try and draw into this
port then.  Rather than messing around with the window manager's port,
my solution was just to create a new, temporary one with OpenPort.

		Greg
		gjs@k.cs.cmu.edu
Technical Details
Message-ID: <1048@k.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!k.cs.cmu.edu!gjs

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!k.cs.cmu.edu!gjs
From: gjs@k.cs.cmu.edu (Gregory Stein)
Newsgroups: net.micro.mac
Subject: Careful with wMgrPort!
Message-ID: <1048@k.cs.cmu.edu>
Date: Mon, 4-Aug-86 18:10:05 EDT
Article-I.D.: k.1048
Posted: Mon Aug  4 18:10:05 1986
Date-Received: Tue, 5-Aug-86 22:44:02 EDT
Reply-To: gjs@k.cs.cmu.edu (Gregory Stein)
Distribution: net
Organization: Carnegie-Mellon University, CS/RI
Lines: 15