Re: FVWM: How to scroll only when moving windows and not otherwise?

From: Scott Scriven <scriven_at_CS.colostate.edu>
Date: Sat, 03 Apr 1999 14:50:01 -0700

Josip Gracin wrote:
> I need the Pager to scroll by 100% ONLY when I'm moving a window and hit
> the edge of the screen with a mouse pointer. Otherwise, hitting the edge
> with the pointer shouldn't switch to another screen.

I've looked for the same thing, and couldn't get this behavior without
modifying the source. I may have just missed something, though. But here's
the simple patch I use to "fix" this behavior. Apply it to fvwm/events.c...

--------------------------------------------------
*** events.c~ Tue Feb 16 09:11:43 1999
--- events.c Wed Feb 24 16:37:45 1999
***************
*** 1206,1214 ****
--- 1206,1217 ----
    {
      int delta_x=0, delta_y=0;
      /* this was in the HandleMotionNotify before, HEDU */
+ /* Modified by Scott Scriven.. I hate this behavior */
+ #if 0
      HandlePaging(Scr.EdgeScrollX,Scr.EdgeScrollY,
                   &Event.xcrossing.x_root,&Event.xcrossing.y_root,
                   &delta_x,&delta_y,True);
+ #endif
      return;
    }
  #endif /* NON_VIRTUAL */
--------------------------------------------------


 _ _ _ _ ___ ___ -----------"Use the source, Luke!"---------
( \/ ( \/ (__ (__ ) | ~ Scott Scriven (Toy Keeper / XYZZ) |
 \ / \ / // // | mailto:toykeeper_at_cheerful.com |
 / \ / / //_ //_ | mailto:scriven_at_CS.ColoState.edu |
(_/\_(_/ (___(___) | http://www.vis.colostate.edu/~scriven/ |
--
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 Apr 03 1999 - 15:50:20 BST

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