Re: Focus for NPAPI plug-in for Alt-Tab

[email protected]
Newsgroups gmane.comp.mozilla.devel.plugins
Organization http://groups.google.com
Message-ID <[email protected]>
On Tuesday, January 24, 2012 5:13:42 PM UTC+5:30, jaitirth shirole wrote:
> In our NPAPI plug-in, we handle WM_SETFOCUS in the plug-in's wndproc.
> We get here when we switch tabs in a Firefox browser window.
> But, if we Alt-Tab to another Windows application and come back, we
> don't get this event.
> If we do Alt-Tab for the second time, this event does get fired!
> How does Mozilla code decide when to handover WM_SETFOCUS to plug-in's
> wndproc and when not to?
> How can we guaranteedly receive this event in this particular Alt-Tab
> case when the plug-in containing Firefox top level window is indeed
> getting activated?
> 
> BTW, I've seen the same behavior for Flash & PDF plug-ins.
> 
> Any solutions, workaround?

Hi jaitirth

Work around which I found are
1. to use the ClipRect value. ClipRect will be empty in hidden case.
2. Register for javascript events Blur and Focus.

Regards,
Vishu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.