Re: FVWM: Precise moving icons

From: Dan Espen <dane_at_mk.bellcore.com>
Date: Thu, 12 Mar 1998 08:22:47 -0500

Guido Bolognesi <guido_at_mail.ing.unibo.it> writes:
> Dan Espen wrote:
>
> > > I'd like to obtain this: when moving iconized windows, I'd want them to
> > > move
> > > of a discreet quantity, like if they were on a grid (moving on "snap"),
> > > so that
> > > the icons are always aligned.
> > > This is possible, for example, on CDE.
> > > Do you know how can I obtain this? (I think I'll have to modify sources,
> > > but I
> > > don't mind).
> > If you attempt this, start with fvwm 2.0.46. I think the Linux
> > version of 2.0.46 already includes the "iconboxes patch" which you
> > will need in order to have an icongrid.
> > If not, you will find this patch in the "unofficial patches" area of
> > the fvwm2 home page.
> I downloaded 2.0.46 and the iconboxes patch and recompiled.
> It works, but it doesn't do whta I needed: when I move the icons, I can
> still
> drop them anywhere on the screen, at random positions...
> What I expected was that after defining something like
>
> Style "*" IconBox +900+8+927+800, IconGrid 90 90
>
> I would have had the icons dropped at least at 90 pixel from each
> other... :(
> If I am doing something wrong, can you point it out? (and then tell me?)

No, you are doing nothing wrong. You still have to make changes, as I
said, "start with fvwm 2.0.46.". Before 2.0.46 and the patch, there
was a built in 3x3 pixel grid, but no way to change the grid size.
This would have been useless for your purposes.

The iconbox and the icongrid affect AUTOMATIC placement of icons only.
Once you move an icon, the icon stays wherever you move it. In fact,
you will see a switch being set in the window structure saying the
icon was moved, which currently forces fvwm2 to leave the icon where
it was moved to. This also affects how the icon is positioned when it
is marked "sticky" and you change desktops.

I'm not sure why you are moving icons, but my guess is that you want
to change the move logic, so that if an icon is dropped anywhere in
the iconbox you want to see if its near an open grid location, and
drop it into that spot, and not mark it "moved".

You may notice that the actual placement in the grid could use some
fine tuning. With fvwm, icons can be any size and the current logic
doesn't center the icon into the grid. It currently places the icon
into the upper left, (it really depends on the "iconfill direction").

> thanks
> --
> gu1d0
> ----------------------------------------------------
> Guido Bolognesi ---- System and Network Adm ----

--
Dan Espen                                Phone: (732) 699-5570
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.bellcore.com
Piscataway, NJ 08854
--
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 Thu Mar 12 1998 - 07:24:29 GMT

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