Re: exluding a window from Expose
Re: exluding a window from Expose
- Subject: Re: exluding a window from Expose
- From: Randall Meadows <email@hidden>
- Date: Tue, 10 Feb 2004 09:10:02 -0500
At 2:09 PM +0100 2/10/04, Benjamin Salanki wrote:
does anyone know how to keep a window from moving out of view when a
user activates expose?
i have a window that should be visible all the time, but I just can't
get it to work properly.
The archives are your friend. ;)
This was posted to the list earlier this month:
-----
Many, many thanks to Richard Wareham, developer
of the *great* desktop manager (If you don't
know, give it a try, really amazing. Thats an
utility to give MacOS X Virtual Desktop feature
"a la" Un*x :
http://wsmanager.sourceforge.net/).
Since this one is opensource and I noted that
while running, my window were kept in place
during exposi, I asked him the way to do this and
it gave me a nice solution. Here is what I took
from the source code, rearranged to fit into a
WindowController subclass :
-(void)setSticky:(BOOL)flag {
CGSConnection cid;
CGSWindow wid;
wid = [[ self window ] windowNumber ];
cid = _CGSDefaultConnection();
int tags[2];
tags[0] = tags[1] = 0;
OSStatus retVal = CGSGetWindowTags(cid, wid, tags, 32);
if(!retVal) {
if (flag)
tags[0] = tags[0] | 0x00000800;
else
tags[0] = tags[0] & 0x00000800;
retVal = CGSSetWindowTags(cid, wid, tags, 32);
}
}
Thanks to him again.
-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.