[SOLVED !] Disabling_Expose_for_some_windows,_some_day?
[SOLVED !] Disabling_Expose_for_some_windows,_some_day?
- Subject: [SOLVED !] Disabling_Expose_for_some_windows,_some_day?
- From: Yann Bizeul <email@hidden>
- Date: Mon, 2 Feb 2004 20:08:48 +0100
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.
Le 31 janv. 04, ` 01:19, Karl Goiser a icrit :
>
Thing is, with my application, everybody said that it needs to work
>
with Exposi etc etc. Then I started thinking about the issues and
>
came up with an alternate solution. In the end, the result seems much
>
better than if Apple had provided a way of disabling Exposi.
>
>
So I think that if people think more about their apps and their apps'
>
requirements, they may discover something themselves!
>
>
>
Karl
>
_______________________________________________
>
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.
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.