On Tue, Jul 07, 2009 at 08:55:34PM +0100, Thomas Adam wrote:
> 2009/7/7 Kathryn Andersen <[email protected]>:
> > I'm working on a Fvwm Perl module (that is, an Fvwm module using Perl
> > and FVWM::Module and related packages). ?One of the things it does is
> > resize and move windows, but I want my resizing and moving to honour the
> > EwmhBaseStruts restrictions. ?Now, the Maximize command honours them
> > automatically, but the Move command doesn't (and fair enough, too).
> 
> Remember that in terms of resizing and moving that can only happen
> *after* the fact, due to the fact the pointer is grabbed and nothing
> is updated until after the operation has completed.  The struts limit
> isn't a brick wall for things not to move around, it's just a hint ---
> so, yes, whilst you can do what you want, the effect might seem a
> little odd.

Oh, I know it isn't a brick wall, it's a hint; I just happen to want to
honour that hint in the way my module works.  As I said, "fair enough".
Because one may wish to move windows anywhere in the viewport, or even
move them outside the viewport.  I just happen to want to move them
within the working area.
 
> > So I need some way, within my module, of finding out what the values for
> > EwmhBaseStruts are. ? I tried using the FVWM::Tracker::GlobalConfig
> > tracker to get this information, but the only information it gives me is
> > Desktop names, Colorsets, ImagePath and a couple of other things. ?But
> > nothing about EwmhBaseStruts.
> 
> That's because that specific set of information isn't broadcast to all
> modules or sent down in Send_ConfigInfo.

Okay, so it's basically not available.  That's good to know, before I
wasted more time on it.  Thanks.
 
> > Is there some other method of finding this information, or am I missing
> > something?
> 
> If you're *really* desperate, put each value of the EwmhBaseStruts
> options into the environment via SetEnv.

Alternatively, I think I'll set it as configuration options for the
module.

*MyModule: Struts n n n n

or maybe

*MyModule: Left n
*MyModule: Right n
*MyModule: Top n
*MyModule: Bottom n

Thanks for your help.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen  <http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |   -> Earth -> Sol -> Milky Way Galaxy -> Universe

Reply via email to