Here's what I want to do. Whenever a popup window appears in Netscape (say
I pressed M-l or M-f or it's asking me if I really want to submit the
form), I want the keyboard focus to go to the popup. When the popup
disappears, I want the focus to return to whatever window it was in before
(though I'd settle for a Netscape window, as long as it was the one I came
from).
As far as I can tell, the tool to use here is FvwmEvent. What I've gotten
is the following.
AddToFunc FocusIfTransient "I" Next (*_popup) Focus
*FvwmEventCmd FocusIfTransient
*FvwmEvent add_window FocusIfTransient
This works just fine. The popup appears, and it immediately gets focus.
However, when it disappears, although the mouse pointer is still in the
Netscape window (I use focus follows mouse), it doesn't get the focus (no
window does, as far as I can tell) unless the pointer was inside the popup
to begin with (a situation in which all this rigmarole is unnecessary).
I can't for the life of me, though, figure out how to do the second half
here. I've tried putting in the appropriate FvwmEvent stuff:
*FvwmEventCmd UnFocusIfTransient
*FvwmEvent destroy_window UnFocusIfTransient
But I can't figure out what to put in UnFocusIfTransient, particularly so
that it doesn't get called on *every* window destroy.
So -- is there a way to do it without making any modifications? Also, is
it a bug that focus does not return to the original window on its own?
This is using the CVS version dated Dec 19 21:31.
Please cc: me on any responses, as I'm not subscribed to this list.
Thanks,
Danek
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 08 1999 - 00:07:07 GMT