Re: FVWM: warping pointer w/ XFree86 4.0 + Xinerama (FIXED)

From: Danny Dulai <nirva_at_ishiboo.com>
Date: 21 Mar 2000 13:06:25 -0000

On 03/16/00, Dominik Vogt said:
>The only thing I can think of is printing out all KeyPress
>events in HandleKeyPress() (events.c) and see if fvwm gets
>the cursor keys at all. If not try printing out all keys
>that are unbound in libs/Bindings.c in the GrabWindowKey()
>function. If they're not unbound there, then it must be
>a XFree bug (?).

So I tracked it down to the XWarpPointer() call.. the actual numbers fvwm
was coming up with were correct, and it was passing them to XWarpPointer()
correctly too.

The only difference in my xwarppointer code and the fvwm code was that the
src window arg (2nd arg) is set to the root window in fvwm, and its set to
None in my code.

I replaced the 2nd arg with None in builtins.c on line 509 for fvwm-2.1.13
(the only call to XWarpPointer() in the file) and all works for me now with
XFree86 4.0.

Why was this set to the root window at all? From the manpage:

    However, if src_w is a window, the move only takes place if the window
    src_w contains the pointer and if the specified rectangle of src_w
    contains the pointer.


I have submitted a bug to XFree86, but if there is no real reason why the
src_w should be root, then can this change be made in the cvs repository so
future fvwms can work with XFree86 4.0?


Now it seems I have random RaiseLower issues.. I wonder if their window
stacking stuff is broken. This one is much harder to reproduce, so it might
take a while.

-- 
___________________________________________________________________________
Danny Dulai                                           Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/                            nirva_at_ishiboo.com
--
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 Tue Mar 21 2000 - 07:06:26 GMT

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