FVWM: Do not warp the mouse pointer...

From: Markus Gutschke <gutschk_at_uni-muenster.de>
Date: Wed, 19 Jun 1996 17:49:40 +0200

Hi,

I do not like my mouse pointer to be warped. Fvwm usually does not do
this, unless I tell it to do so explicitly, but there is one case,
when this annoying behavior still shows up. Judging from the context,
I actually believe this to be a bug, as it handles "ClickToFocus"
different from "SloppyFocus" which does not make much sense in this
context. Could you please consider incorporating this (or a similar)
patch in one of the next beta releases? Is posting to the mailing
list, the appropriate way of submitting patches?


Markus

re --- cut here --- cut here --- cut here --- cut here --- cut here --- cut he

--- fvwm-2.0.42/fvwm/builtins.c.orig Fri Jun 14 12:13:30 1996
+++ fvwm-2.0.42/fvwm/builtins.c Fri Jun 14 12:14:40 1996
_at_@ -197,7 +197,7 @@
     x = t->frame_x;
     y = t->frame_y;
   }
- if(!(t->flags & ClickToFocus))
+ if(!(t->flags & (ClickToFocus|SloppyFocus)))
     XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0, x+2,y+2);
   RaiseWindow(t);
   KeepOnTop();
_at_@ -207,7 +207,7 @@
      (t->frame_x >Scr.MyDisplayWidth)||(t->frame_y>Scr.MyDisplayHeight))
   {
     SetupFrame(t,0,0,t->frame_width, t->frame_height,False);
- if(!(t->flags & ClickToFocus))
+ if(!(t->flags & (ClickToFocus|SloppyFocus)))
       XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0, 2,2);
   }
   UngrabEm();

--
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 Wed Jun 19 1996 - 16:17:33 BST

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