FVWM: Fix for sticky top/left sides when placing/moving windows

From: Chris Siebenmann <cks_at_hawkwind.utcs.toronto.edu>
Date: Tue, 7 Apr 1998 20:40:51 -0400

 This fvwm 2.0.46 bug is hard to describe but easy to demonstrate: go
to the top left page of your current desktop, start something that
requires manual placement, run your mouse to the left side of the
screen, and then move it vertically up or down without pausing. The
window rubber-band 'sticks' to the spot where the mouse first hit the
left side of the screen until you stop moving the mouse, in a very
distracting way. Similar effects can be had by running the mouse into
the top of the screen and then moving it sideways.

 The following small patch fixes this problem:
--- fvwm/virtual.c 1998/03/06 09:20:38 1.1
+++ fvwm/virtual.c 1998/03/06 09:50:54
_at_@ -31,11 +31,11 @@
     return;
   
   /* need to move the viewport */
   if(( Scr.VxMax == 0 ||
- (*xl >= SCROLL_REGION && *xl < Scr.MyDisplayWidth - SCROLL_REGION)) &&
+ ((*xl >= SCROLL_REGION || !Scr.Vx) && *xl < Scr.MyDisplayWidth - SCROLL_REGION)) &&
      ( Scr.VyMax == 0 ||
- (*yt >= SCROLL_REGION && *yt < Scr.MyDisplayHeight - SCROLL_REGION)))
+ ((*yt >= SCROLL_REGION || !Scr.Vy) && *yt < Scr.MyDisplayHeight - SCROLL_REGION)))
     return;
   
   total = 0;
   while(total < Scr.ScrollResistance)

        - cks
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Apr 07 1998 - 19:41:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST