Re: Fwd: XForms: [PATCH] Double clicking doesn't work in file selectors

From: Mike Heffner (mheffner@vt.edu)
Date: Sat May 24 2003 - 11:45:37 EDT

  • Next message: eddie: "XForms: xforms and threads"

    # To subscribers of the xforms list from Mike Heffner <mheffner@vt.edu> :

    On 04-May-2003 Angus Leeming wrote:
    |
    | - clicked = (clicked || xev->type == ButtonPress);
    | + clicked = (clicked || xev->type == ButtonPress || xev->type ==
    | MotionNotify
    |

    Looking at this code again, when you click the mouse on any item in the
    Browser, the callback (select_cb) will always be called with the event
    type MotionNotify. I put a single printf at the top of that function and I
    never got a ButtonPress event. Possibly the MotionNotify events
    are happening so quickly they hide the ButtonPress events read from
    fl_last_event? Is anyone using fl_last_event() to read ButtonPress events?
    The file selector appears to be the only code in the entire xforms lib
    that uses it.

    So, currently testing for MotionNotify in the select_cb is all I can think
    of.

    Mike

    -- 
      Mike Heffner       <mheffner@[acm.]vt.edu>
                             <mikeh@FreeBSD.org>
    

    _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/ Development: http://savannah.nongnu.org/files/?group=xforms



    This archive was generated by hypermail 2b29 : Sat May 24 2003 - 11:48:47 EDT