>>>>> Allen Brady Montz writes:
A> "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
A> Quite possible. Just make a binding like:
A> *FvwmIconMan*action Select sendcommand select select Focus
A> In FvwmIconMan lingo, select means to move the mouse into a button. This has
A> FvwmIconMan send the command "Focus" to the currently selected window. The
A> syntax is horrible I admit, but I haven't had the energy to come up with
A> something better.
A> Slight problem is that with fvwm, if you Focus a window, it will raise it as
A> well. I used to release a patch which made Focus just focus, but it's a bit
A> out of date now. If you want to do it youself, just comment out the lines:
A> RaiseWindow(t);
A> KeepOnTop();
A> /* If the window is still not visible, make it visible! */
A> if(((t->frame_x + t->frame_height)< 0)||(t->frame_y + t->frame_width < 0)||
A> (t->frame_x >Scr.MyDisplayWidth)||(t->frame_y>Scr.MyDisplayHeight))
A> {
A> SetupFrame(t,0,0,t->frame_width, t->frame_height,False);
A> if(!(t->flags & ClickToFocus))
A> XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0, 2,2);
A> }
A> UngrabEm();
A> at the end of the function FocusOn in builtins.c.
I thought focus doesn't raise the window?
hmm....
well it does (from the source).
maybe we should change that?
we already ripped the mouse-warping from the focus function, why not the
raise, too?
you can always call a user-defined fvwmFunction, which does focus & raise
the window.
Chuck, what do you think?
BTW: the raise_it function - now obsolete - is still defined in
builtins.c & function.c
albrecht
--
Overhead the albatross hangs | And everything is green and submarine
Motionless upon the air | And no one showed us to the land
And deep beneath the rolling waves | And no one knows the wheres or whys
In labyrinths of coral caves | But something stares
The echo of a distant tide | And something tries
Comes willowing across the sand | And starts to climb towards the light
-- Pink Floyd, "Echoes"
--
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 Tue Jan 21 1997 - 07:14:50 GMT