Re: FVWM: pages in windowlist

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Thu, 21 Mar 2002 11:00:28 +0100

On Wed, Mar 20, 2002 at 02:22:07PM -0800, Elliot Sowadsky wrote:
>
> I use pages rather than desks (i dont remember why i didnt like desks)
> and i added code to windowlist to display my relative page by dividing my x values by my hard coded screen #'s.
>
> if(t->frame_g.x > 1151)
> sprintf(loc,"+%d ",(t->frame_g.x)/1152);
> else if(t->frame_g.x < 0)
> sprintf(loc,"%d ",((t->frame_g.x)-1151)/1152);
> else
> sprintf(loc," 0 ");
>
> What's the right way to display absolute page #'s ?

 - Choose a point of the window to compare against. E.g. the top
   left corner or the middle of the window.
 - Add Scr.Vx and Scr.Vy to the x/y coordinates.
 - Divide by Scr.MyDisplayWidth/Height.

Bye

Dominik ^_^ ^_^

-- 
Dominik Vogt, email: d.vogt_at_lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
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 Thu Mar 21 2002 - 05:08:29 GMT

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