Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Focus for NPAPI plug-in for Alt-Tab

51 views
Skip to first unread message

jaitirth shirole

unread,
Jan 24, 2012, 6:43:42 AM1/24/12
to
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?
Message has been deleted

hwyg...@gmail.com

unread,
Mar 5, 2012, 3:09:21 AM3/5/12
to
Hi shirole,
Is your problem solved? if Ok ,can you share your method, thx!

vishwa....@gmail.com

unread,
Jun 5, 2012, 2:22:57 AM6/5/12
to
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
0 new messages