On Sat, 17 May 2008 23:41:47 +0100 Chris G <[EMAIL PROTECTED]> wrote:
> On Sat, May 17, 2008 at 11:27:57PM +0100, Thomas Adam wrote: > > On 17/05/2008, Chris G <[EMAIL PROTECTED]> wrote: > > > If I click on the button at the left hand end of the title bar I > > > get the "window_ops_func". The "Minimize", "Maximise", "Kill" > > > and "Close" options do exactly what I expect (and what they say) > > > but I can't get "Move" or "Resize" to do anything at all. > > > > > > Have I broken something or, if not, how are they supposed to > > > work? I seem to remember on my Solaris system that if you click > > > on "Size" and then move the cursor when it hits the border of the > > > window it grabs it and resizes. Is this what is supposed to > > > happen with fvwm? > > > > > > (I'm running fvwm 2.5.24 on Fedora 8 by the way) > > > > Is this the default menu (defined in $(fvwm-config > > -d)/ConfigFvwmSetup? It should just work. What is it that's not > > happening? Most people like to define, for instance: > > > Yes, as far as I know it's the default menu. I have the default > line that says:- > > Mouse 0 1 A Function "window_ops_func" This only appears in the fvwm2rc-sample-95 file which is hideously out of date, along with every other FVWM sample config distributed with FVWM which is another matter entirely. > above that there is:- > > AddToFunc "window_ops_func" "C" PopUp Window-Ops2 > + "M" PopUp Window-Ops2 > + "D" Delete > > and above that is:- > > AddToMenu "Window-Ops2" "&Restore" Iconify -1 > + "&Move" Move-or-Raise > + "&Size" Resize-or-Raise > + "Mi&nimize" Iconify 1 > + "Ma&ximize" Maximize 100 100 > + "" Nop > + "&Kill" Destroy > + "&Close Alt+F4" Delete > > When I click on the button in the title bar I see the menu as above as > expected but Move and Size do nothing, no change in cursor or > anything. > > However if I click button 2 on the background/root:- > > Mouse 2 R A Menu "Window Ops" Nop > > I get the "Window Ops" menu:- > > AddToMenu "Window Ops" > + "&Move" Function Move-or-Raise > + "&Resize" Function Resize-or-Raise > + "R&aise" Raise > + "&Lower" Lower > + "(De)Iconify" Iconify > + "(Un)Stick" Stick > + "(Un)Maximize" Function maximize_func > + "" Nop > + "Kill" Destroy > + "&Close" Delete > + "" Nop > + "Switch to..." WindowList > + "Refresh Screen" Refresh > > and then Move and Resize work. Because of the fact that functions grab the pointer. Just define your own routines and all will be right with what you want. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci.