Find a file
Ander Conselvan de Oliveira 23900f70e5 input: Empty the current input region when configuring pointer surfaces
The input region of the cursor surface is set to empty in
pointer_cursor_surface_configure(). Since during the commit process
this function is called before the pending input region is made
current, it empties surface->pending.input instead of surface->input.

But pointer_cursor_surface_configure() is also called from
pointer_set_cursor() in order to map the cursor even if there isn't a
subsequent attach and commit to the cursor surface. In that case,
surface->input is never emptied, since the configure function emptied
only the pending input region and there wasn't a commit that made it
effective.

Fix this by emptying both pending and current input regions. The latter
shouldn't cause problems since the surface can't have a role prior to
being assigned the cursor role, so it shouldn't be mapped in the first
place.

Also change toytoolkit so that it triggers the bug.

https://bugs.freedesktop.org/show_bug.cgi?id=73711
2014-02-01 01:12:24 -08:00
clients input: Empty the current input region when configuring pointer surfaces 2014-02-01 01:12:24 -08:00
data build: Move data/Makefile.am into Makefile.am 2014-01-31 23:49:39 -08:00
desktop-shell build: Move desktop-shell/Makefile.am into toplevel Makefile.am 2014-02-01 00:07:21 -08:00
man build: Move man/Makefile.am into toplevel Makefile.am 2014-02-01 00:08:51 -08:00
protocol build: Move protocol/Makefile.am into toplevel Makefile.am 2014-02-01 00:08:39 -08:00
shared build: Move shared/Makefile.am into toplevel Makefile.am 2014-02-01 01:05:35 -08:00
src input: Empty the current input region when configuring pointer surfaces 2014-02-01 01:12:24 -08:00
tests build: Move tests/Makefile.am into toplevel Makefile.am 2014-02-01 01:04:32 -08:00
wcap build: Move wcap/Makefile.am into top-level Makefile.am 2014-01-31 23:50:00 -08:00
xwayland build: Move xwayland/Makefile.am into toplevel Makefile.am 2014-02-01 00:07:23 -08:00
.gitignore Automatically generate weston.ini with the right paths 2013-11-27 22:49:31 -08:00
autogen.sh Update autotools configuration 2010-11-06 21:04:03 -04:00
configure.ac build: Stop using xmllint to validate protocol files 2014-02-01 01:05:36 -08:00
COPYING Add COPYING 2012-04-25 10:17:42 -04:00
Makefile.am build: Stop using xmllint to validate protocol files 2014-02-01 01:05:36 -08:00
notes.txt Add informal notes file 2012-10-25 15:00:42 -04:00
README Flesh out README a bit, link to building instructions 2012-07-20 12:26:23 -04:00
weston.ini.in Automatically generate weston.ini with the right paths 2013-11-27 22:49:31 -08:00

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.