Re: Click Through Bug?
Re: Click Through Bug?
- Subject: Re: Click Through Bug?
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 5 Feb 2003 18:47:38 -0800
On Wednesday, February 5, 2003, at 03:34 PM, Perry Clarke wrote:
My theory is that for each mouse click the window manager checks the
windows under it until it finds the first non-transparent one and
gives the click to the application that owns that window. If a
borderless window is in the middle of repainting itself when the
window manager checks its transparency, the window manager may
incorrectly decide the window (or, at least, the area under the mouse)
is transparent and should not get the click.
The window manager is behaving correctly in this case. Wherever a
window is transparent, clicks will pass through to the next
non-transparent window. In your example, at the time that it's
checked, the window *is* transparent. There's no way to for the window
manager to know whether you intend for the window to be opaque sometime
soon.
One thing you might try here is to paint the window background with a
color that has a very low alpha value, but keep in mind that the user
will expect events to go the window that he can see under the cursor,
not to a transparent window.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.