Summary: | Fullscreen video HUD stays on top when switching to another window (e.g. via Alt-Tab) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> | ||||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bdakin, cmarrin | ||||||
Priority: | P2 | Keywords: | InRadar, PlatformOnly | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Attachments: |
|
Description
Adam Roben (:aroben)
2010-01-15 14:09:50 PST
Created attachment 50556 [details]
Patch
Comment on attachment 50556 [details] Patch > void FullscreenVideoController::draw() > { > + HWND foregroundWindow = GetForegroundWindow(); > + if (foregroundWindow == m_videoWindow) > + createHUDWindow(); > + else if (foregroundWindow != m_hudWindow) > + destroyHUDWindow(); > + After this, I think you should assert that m_hudWindow is non-null. And maybe you should bail if it is null, in release builds. r=me Created attachment 50631 [details]
New patch
Adam and I discussed a better way to do this on IRC!
Comment on attachment 50631 [details]
New patch
r=me!
|