2013/3/30 Matthias Clasen <matthias.cla...@gmail.com> > Here are a few questions/observations I had while studying the protocol > docs: > > - The use of serials in events seems a bit inconsistent. Most > wl_pointer events have serials, but axis doesn't. wl_keyboard > enter/leave events do. wl_data_offer.enter does, but the corresponding > leave/motion events don't. Is there a rationale for this ? > > - Various input events have a time field. The spec doesn't really say > anything about this. What is it good for, and what units are these - > monotonic time ? >
The time can be used to calculate whether two clicks are a double click for instance. The timestamps are sent by evdev, and i think they are monotonic, but i'm not sure. > - It looks like I can't trigger a popup from a key or touch event, > because set_popup requires a serial that corresponds to an implicit > pointer grab. That is sad, I like the menu key... > Yes, this is a known bug which needs to be addressed. > - Still on popups, I don't see a way for the client to dismiss the > popup, or is that handled by just destroying the surface ? > I think the only other way apart destroying it is unmapping it, that is attaching a null buffer to the surface. > > - Buffer transformations - fun. How do these relate to each of the > following ? > - resize edges > - transient offset > - buffer attach x/y > - input/opaque/damage regions > - surface x/y in motion events > > - What is a wl_touch.frame event ? Weston doesn't seem to generate those... > > - Various strings in the protocol: title, class, output model/make. > Are all of these required/known to be UTF-8 ? The class is documented > as being a file path, which is bad news wrt to encodings... > > - The wl_pointer interface seems to be a bit weak wrt to device > properties. I would at least expect to learn about the number of > buttons and right-handed vs left-handed, etc. > > > Thanks for any insights you can share about these questions. > > > Matthias > _______________________________________________ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/wayland-devel >
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel