[prev in list] [next in list] [prev in thread] [next in thread]
List: fvwm
Subject: Re: FVWM: Best way to control icon placement when windows are
From: Thomas Adam <thomas () xteddy ! org>
Date: 2010-07-21 20:58:45
Message-ID: 20100721205844.GB2965 () shuttle ! home
[Download RAW message or body]
On Wed, Jul 21, 2010 at 09:54:12PM +0100, Thomas Adam wrote:
> On Wed, Jul 21, 2010 at 04:39:26PM -0400, Chris Siebenmann wrote:
> > I am currently using a somewhat hacked version of fvwm 2.4.20 and I
> > would like to move to fvwm 2.5.x (for whatever x is current when I get
> > all of the pieces working). One of the stumbling blocks is duplicating
> > one piece of icon placement behavior in my current setup.
> >
> > I do not have an icon box ('Style * IconBox none'). How I want icon
> > placement to work is this:
>
> Why? Just let it be the default (which is the whole screen).
>
> > - when a window is iconified for the first time (and does not have any
> > sort of icon placement specified), the icon is put right under the
> > mouse cursor.
>
> You can do this with a state, windowstyle, and FvwmEvent. Here's a rough
> outline -- oh, and it assumes 2.5.X, since you can't do this at all easily
> on 2.4.X. Good luck.
>
> # All windows, regardless, get state 1 which is removed when iconified.
> Style * State 1
>
> DestroyModuleConfig A:*
> *A: iconify SomeFunc
> *A: deiconify SomeOtherFunc
>
> AddToFunc StartFunction I Module FvwmEvent A
>
> DestroyFunc A
> AddToFunc A
> + I ThisWindow (State 1) MoveIconWindow
> + I TestRc (NoMatch) Break
>
> DestroyFunc MoveIconWindow
> AddToFunc MoveIconWindow
> + I Move m+0 m+0
> + I ... (other things?)
>
> DestroyFunc SomeOtherFunc
> AddToFunc SomeOtherFunc
> + I ThisWindow (State 1) WindowStyle 1 False
s/1/State &/
-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic