Bug 20999

Summary: Inspector hover to select does not work properly on Windows
Product: WebKit Reporter: Matt Lilek <dev+webkit>
Component: Web Inspector (Deprecated)Assignee: Matt Lilek <dev+webkit>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben
Priority: P2 Keywords: InRadar, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows Vista   
Attachments:
Description Flags
Patch
none
one liner darin: review+

Description Matt Lilek 2008-09-22 10:41:44 PDT
The hover to select functionality does not work properly on Windows - the first node is initially highlighted properly, but then goes all the way out to what appears to be the body element.  It is also impossible to actually select the node as clicking does nothing.  The highlight window is probably messing with our mouse events.
Comment 1 Adam Roben (:aroben) 2008-09-22 10:45:14 PDT
<rdar://problem/6236524>
Comment 2 Matt Lilek 2008-09-22 17:37:49 PDT
Created attachment 23685 [details]
Patch

I'm hoping I missed an easier way of doing this...

There is still a tendency for the highlight to get "stuck" at a larger, outer element, but it doesn't seem as bad as is in the tree current (but that could just be me).  It's definitely something to fix in the future, but this at least gets it working on Windows.
Comment 3 Matt Lilek 2008-09-23 05:53:02 PDT
Comment on attachment 23685 [details]
Patch

Clearing the review flag, I think the hover forwarding stuff is wrong, I'd like to into it some more.
Comment 4 Adam Roben (:aroben) 2008-09-23 06:40:45 PDT
If you just want all mouse events to pass through the overlay window as if it weren't there, try passing WS_EX_TRANSPARENT to CreateWindowEx.
Comment 5 Matt Lilek 2008-09-24 18:01:40 PDT
Created attachment 23777 [details]
one liner

One line patch - I'm an idiot.
Comment 6 Darin Adler 2008-09-24 18:03:55 PDT
Comment on attachment 23777 [details]
one liner

r=me
Comment 7 Matt Lilek 2008-09-24 18:10:50 PDT
Committed revision 36881.