On Tue, Feb 10, 2009 at 12:48 PM, James Hawkins <[email protected]> wrote: >> I honestly don't think hit testing a 20 pixel high rectangular area is >> going to be too tricky. Also, even with the button approach, even if >> the window has areas that are see through, I'm not sure how the works >> with events. I wouldn't be surprised if we'll have to do more >> calculations when the button is pressed, to make sure it's not in the >> space in between, etc. > > We'd use gdk_window_input_shape_combine_region, set up to match the > exact (very close) region of the tab, which is not rectangular. If > you do treat it as a rectangle, then you have to deal with clicking in > the small space between the tabs.
The tricky consequence of this is drawing. If you mean that each tab has its own carefully shaped window, it will be impossible to antialias the edge of one tab over another (since when the window moves all its pixels will move). --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
