[SOLVED !] Re-enabling Expose for certain windows
[SOLVED !] Re-enabling Expose for certain windows
- Subject: [SOLVED !] Re-enabling Expose for certain windows
- From: Andreas Kummer <email@hidden>
- Date: Thu, 12 Feb 2004 15:31:54 +0100
Well, since nobody answered my post of yesterday, I've got my own hands
dirty... ;-)
After some poking around, here is a new version of the method that
makes windows ignoring Expose __and__ (Applause, please!) gets them
back to normal behaviour:
- (OSStatus)setSticky:(BOOL)flag
{
CGSConnection cid;
CGSWindow wid;
int tags[2];
wid = [[self window] windowNumber];
cid = _CGSDefaultConnection();
if (!CGSGetWindowTags(cid, wid, tags, 32)) {
tags[0] = 0x0800;
tags[1] = 0;
if (flag)
return CGSSetWindowTags(cid, wid, tags, 32);
else
return CGSClearWindowTags(cid, wid, tags, 32);
}
}
Of course, like the other stuff, CGSClearWindowTags() has to be
declared somewhere:
extern OSStatus CGSClearWindowTags(const CGSConnection cid, const
CGSWindow wid,
int *tags, int
thirtyTwo);
Cheers,
Andreas
________________________________________________________________________
__
Aksima
Andreas Kummer
Helene-Mayer-Ring 10/706
80809 Muenchen
Germany
Fon: ++49-89-15909290
Fax: ++49-89-15909289
Email: email@hidden
________________________________________________________________________
__
_______________________________________________
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.