Re: FVWM: fvwm-perl tutorial example

From: Peter McAlpine <pmcalpin_at_uoguelph.ca>
Date: Sat, 9 Nov 2002 14:52:13 -0500

On Sat, Nov 09, 2002 at 03:57:50AM +0000, Mikhael Goikhman wrote:
> > > But it has the same problem I'm having, it doesn't report the correct
> > > page (as it claims it will).
>
> Interesting, what does it report if not the correct page numbers?
> It works for me with 2.5.4.

Well, I've got a 3x3 desk. So:
{(0,0), (0,1), (1,0), (1,1)} :: module-flash shows: (0,0)
{(2,0), (2,1)} :: module-flash shows: (1,0)
{(0,2), (1,2)} :: module-flash shows: (0,1)
{(2,2)} :: module-flash shows: (1,1)

examining the formula in module-flash:
    my $page_nx = int($event->_vp_x / $width);
    my $page_ny = int($event->_vp_y / $height);

the highest values that page_nx/ny can possibly be is 1. They will
never be higher.


> I should be missing something, please enlighten me.
> Is not it exactly what vp_width and vp_height arguments of M_NEW_PAGE are?
> And M_NEW_DESK/M_NEW_PAGE are sent on Send_WindowList from modules.

I don't completely follow what you're saying here. M_NEW_DESK/PAGE are
sent TO modules, are they not? And M_NEW_PAGE's vp_width/height show
(from the online docs):
The fourth [vp_width] and fifth [vp_height] values are the maximum
allowed values of the coordinates of the upper-left hand corner of the
viewport.

Seeing as how it is possible (using FvwmPager) to be "in-between" two
pages, I can see how the values passed with an M_NEW_PAGE signal are
useful. Is there any way to get fvwm to send me the page size, though?
or is this considered an X issue?

thanks,
-peter =)

-- 
Peter McAlpine
pmcalpin_at_uoguelph.ca
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Nov 09 2002 - 13:50:35 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST