• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re-enabling Expose for certain windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re-enabling Expose for certain windows


  • Subject: Re-enabling Expose for certain windows
  • From: Andreas Kummer <email@hidden>
  • Date: Wed, 11 Feb 2004 17:24:53 +0100

Hi,
does anybody had luck in __re-enabling__ Expose for windows that were made "sticky" by calling the method posted to this list a few days ago?

I actually had success in making windows ignore Expose but I cannot get them back to normal behaviour afterwards.

Re-post of the code by Yann Bizeul:

-(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);
}
}

There is probably a typo in the line that is supposed to clear bit 0x0800. I think this line should read:

tags[0] = tags[0] & ~0x00000800;

But even with this fixed, I cannot __clear__ bits by calling CGSSetWindowTags() - as can be verified by calling CGSGetWindowTags() again after the if-statement.

Any help?

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.
  • Prev by Date: Re: What's wrong with ToolbarItem setLabel?
  • Next by Date: Re: None of an object's methods are being recognized.
  • Previous by thread: Re: NSTableView and confused Drag&Drop
  • Next by thread: Re: Re-enabling Expose for certain windows
  • Index(es):
    • Date
    • Thread