• 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: Click Through Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Click Through Bug? (From: Perry Clarke <email@hidden>)

  • Prev by Date: Question about TableView - how do I know which tableView?
  • Next by Date: default Find Panel?
  • Previous by thread: Click Through Bug?
  • Next by thread: Re: Click Through Bug?
  • Index(es):
    • Date
    • Thread