
The current surface field was used to track the surface the pointer was currently over along with pointer position relative to that surface, regardless of implicit or explicit grabs. The main purpose was to restore the default grab when another grab terminated. We can now just repick in that case and avoid keeping that state around, with the destroy listener overhead that involves. There was one other use case - we used to optimize out calls to weston_pointer_set_focus() if the focus didn't actually change. We can still do that, but we have to do that in the default_grab_focus() handler and compare against weston_pointer->focus instead.
…
…
…
Weston Weston is the reference implementation of a Wayland compositor, and a useful compositor in its own right. Weston has various backends that lets it run on Linux kernel modesetting and evdev input as well as under X11. Weston ships with a few example clients, from simple clients that demonstrate certain aspects of the protocol to more complete clients and a simplistic toolkit. There is also a quite capable terminal emulator (weston-terminal) and an toy/example desktop shell. Finally, weston also provides integration with the Xorg server and can pull X clients into the Wayland desktop and act as a X window manager. Refer to http://wayland.freedesktop.org/building.html for buiding weston and its dependencies.
Description
Languages
C
98.1%
Meson
1.3%
GLSL
0.3%
Shell
0.2%