On Dec 27, 2007 11:31 PM, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > > another important addition to the event handling in Clutter is the > ability to make actors "grab" the events (for pointer and keyboard > events), preventing other actors from receiving them. for instance, in > the example above, the actor grabs all the pointer events when receiving > the button press, and releases the grab on button release and when the > pointer leaves the actor.
Is it possible to get a guaranteed notification of release event for an actor that has seen the press? Regardless of grabs. Or notification that some (other) actor just took the grab? When implementing alternate actions (with gtk) for short and long (key) press events we hit a nasty problem because in certain cases the release event is missed. The basic flow is: 1. on press -> setup a timer 2a. on release -> short press 2b. on timer expire -> long press The problems come if between steps 1 and 2 someone else grabs the pointer/keyboard. The release is missed, timer expires and long press action is triggered. (Which in our case was 'Exit application' -- Oops.) When building widgets with such functionality this case is relatively easy to trigger, and hard to handle properly. A guaranteed release event (with 'not really' bit set) for every press event, or a reliable way to know when you're not going to receive a release for the press would help in such situation. -- Tommi Komulainen [EMAIL PROTECTED] -- To unsubscribe send a mail to [EMAIL PROTECTED]
