On Sat, Jun 29, 2013 at 08:24:33PM -0600, Glenn Golden wrote: > -- > FVWM version: 2.6.5 > > Minor consistency issue regarding the behavior of relatively tall menus, when > invoked via a mouse button. Example: > > Mouse 3 R A Menu fooMenu Mouse -20p -10p > > When Button 3 is clicked, if fooMenu fits vertically within the available > space > between the pointer and the bottom of the root window, then the menu pops up > with the pointer located over the top menu item (suitably offset as specified > by -20p -10p) and with that item highlighted, as desired. This is a nice > convenience because it allows invocation of the first menu item by simply > clicking Button 3 then hitting <cr>. > > But if Button 3 is clicked when there isn't enough space for the entire > fooMenu > to fit vertically downward from the present pointer position, then it pops up > instead with its bottom edge aligned with the bottom of the root window, ...
> I did spend time studying the "Menu" and "MenuStyle" sections of the man page, > but could not come up with a means to accomplish the desired behavior in a way > that is independent of initial pointer position. Well, fvwm always forces menus to be completely on screen as it has not way of moving existing menus around. If you click on the bottom pixel line of the display, you'll obviously want the menu visible and not sticking downwards into the next page. Have you tried the WArpTitle option? Mouse 3 R A Menu fooMenu Mouse WarpTitle It warps the pointer to the first menu item. It might be slightly annoying as it warps the pointer even if that would not be necessary, but if it's good enough, I see no reason to change the code. > b. Add an option which allows root menus to pop partially offscreen, and > then modify the documentation of "Mouse" context-rectangle so that it > states that its behavior depends on this new option. This is really not an option. Menus depend on being completely on screen. > c. Just make the behavior strictly agree with the present "Mouse" context- > rectangle definition in the man page, and perhaps even explicitly state > that this behavior implies that tall menus may pop up partially > offscreen, depending on initial pointer position. See above. (d) Extend the WarpTitle option to "WarpTitleIfNecessary. This would warp the pointer only if the menu did not pop up at the desired item. Ciao Dominik ^_^ ^_^ -- Dominik Vogt