Re: 3x3 bug (was: xmkmf problems)

Albert Dorofeev (Albert@mail.dma.be)
Sat, 13 Jun 1998 14:54:00 +0200


jay wrote:
> 
> I'm running Afterstep 1.4.0, and I finally got fed up with the 3x3 virtual
> desktop bug... ;)

It looks like the fix I proposed never
made it into FAQ. Ok, I do not claim
to have fixed it correctly but this
is what I use and it works fine for me.

--- extract from my mail to asullivan@sprint.ca ---

I did not have a look in the fresh sources
but for the afterstep 1.4 that I use the fix
is simple. In src/functions.c function

void MoveViewport(int newx, int newy, Bool grab)

in the very beginning says:
    if (newx > Scr.VxMax)
        newx = Scr.VxMax;
    if (newy > Scr.VyMax)
        newy = Scr.VyMax;       

It is sufficient to change it to:

    if (newx >= (Scr.VxMax - Scr.MyDisplayWidth) )
        newx = Scr.VxMax - Scr.MyDisplayWidth;
    if (newy >= (Scr.VyMax - Scr.MyDisplayHeight) )
        newy = Scr.VyMax - Scr.MyDisplayHeight;

to make the pager work correctly. Unfortunately,
I could not figure how to fix the mouse pointer
that keeps jumping on the right-hand border
but at least the desktop is of the correct size now.

--- end of extract ---

Enjoy,
Albert

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
   FAQ:   http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html

   To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com