On 09 Nov 2002 14:52:13 -0500, Peter McAlpine wrote:
>
> 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.
Ok, I see it now. This example only works well with the 2x2 desktop.
Thanks for pointing this out.
> > 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?
It is pretty silly that the page size is not send. I thought the 4-th and
5-th arguments of M_NEW_PAGE are the page size, now I should rename them.
Anyway, it is still possible currently to calculate the page size
using these 2 silly values (the maximal left-upper coordinate possible
in the pager) and "DesktopSize 3 3" (this is the first M_CONFIG_INFO
packet sent on Send_ConfigInfo). I will think what to do about M_NEW_PAGE.
Regards,
Mikhael.
--
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 - 15:54:54 GMT