Re: FVWM: Focus via FvwmIconMan; resizing windows at placement?

From: Allen Brady Montz <bradym_at_cs.arizona.edu>
Date: 20 Jan 1997 13:06:16 -0700

"Eddy J. Gurney" <eddy_at_ans.net> writes:

>
> I have two questions:
>
> Is it possible to set up FvwmIconMan so that while the mouse is in the
> FvwmIconMan list, whatever window the cursor is "on" in the list has focus?
> This makes it easy to change focus (especially with click to focus)
> without clicking on windows all over the display. You can simply nudge
> the mouse up or down a few pixels and focus on whatever window you have
> the mouse pointing at. Obviously this might not work well for some
> people who constantly bump the mouse, but 'twm' supports something like
> this, and it is quite useful.
>
> Second, I still cannot figure out how to resize a window when in
> ActivePlacement mode when I have the 3x3 grid. In every other window
> manager I know of, clicking-and-dragging allows you to resize the window,
> and releasing the button actually places it. I can't get this to work in
> fvwm2, .43 or .44. Is is because I'm overriding some functionality with
> my function definitions, or is this not possible in fvwm2?
>
> Eddy

Quite possible. Just make a binding like:

*FvwmIconMan*action Select sendcommand select select Focus

In FvwmIconMan lingo, select means to move the mouse into a button. This has
FvwmIconMan send the command "Focus" to the currently selected window. The
syntax is horrible I admit, but I haven't had the energy to come up with
something better.

Slight problem is that with fvwm, if you Focus a window, it will raise it as
well. I used to release a patch which made Focus just focus, but it's a bit
out of date now. If you want to do it youself, just comment out the lines:

  RaiseWindow(t);
  KeepOnTop();

  /* If the window is still not visible, make it visible! */
  if(((t->frame_x + t->frame_height)< 0)||(t->frame_y + t->frame_width < 0)||
     (t->frame_x >Scr.MyDisplayWidth)||(t->frame_y>Scr.MyDisplayHeight))
  {
    SetupFrame(t,0,0,t->frame_width, t->frame_height,False);
    if(!(t->flags & ClickToFocus))
      XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0, 2,2);
  }
  UngrabEm();

at the end of the function FocusOn in builtins.c.

-- 
 Brady Montz
 bradym_at_cs.arizona.edu
--
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 Jan 20 1997 - 14:06:57 GMT

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