FVWM: on the use of 'Current'

From: Wesley Hart <hart_at_rsn.hp.com>
Date: Mon, 22 Dec 1997 16:06:23 -0600

I seem to be having trouble getting the 'Current' built-in to do
what I think it ought to do. Can anyone help clear up my confusion?

I'm attempting to create a function 'PopupAppMenu' which will pop up
a certain menu based on what window it is invoked from. My function
looks like:

DestroyFunc PopupAppMenu
AddtoFunc PopupAppMenu \
  "I" Current [app1] Popup App1Menu
+ "I" Current [app2] Popup App2Menu
+ "I" Current [app3] Popup App3Menu

and is bound into the titlebar of all aplicable windows, i.e.:


Style "*" NoButton 5
Style "app1" Button5
Style "app2" Button5
Style "app3" Button5

Mouse 0 5 A Function PopupAppMenu

The various App?Menu definitions exist are are correct (I can pop them up
by binding them directly to a key or mouse button).

Now, the way I understand it, the appropriate App?Menu should be popped
up when button 5 is pressed in the respective window. But when put to the
test, nothing happens (the button relief reverses to indicate that it's been
pressed, but no popup appears). So can anyone tell me: is fvwm doing the
wrong thing, or am I assuming the wrong thing? I've glanced at the code for
CurrentFunc() and Circulate(), but am none the wiser. Any suggestions
on how to accomplish this would be most appreciated.

This is with fvwm 2.0.46 running on HP-UX 10.01.

-- 
Wesley Hart
		Two things are infinite:  the universe and human 
		stupidity; and I'm not sure about the the universe. 
					-- Albert Einstein
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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 Mon Dec 22 1997 - 16:06:57 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST