Go to file
Ander Conselvan de Oliveira 4d363cfcf6 input: Fix weston_seat_init_keyboard() error path
The pointer seat->keyboard was set before some possible error returns.
That pointer was left unchanged in case of failure, pointing to an
uninitialized keyboard struct (that was also leaked). If a client sent
a wl_seat::get_keyboard request, that would cause Weston to crash.

Fix this by setting the seat->keyboard pointer only after the keymap
initialization is done and there is no more possibilities for failure.
Also plug the memory leaks on the error path.

https://bugs.freedesktop.org/show_bug.cgi?id=74035
2014-02-01 01:14:22 -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: Fix weston_seat_init_keyboard() error path 2014-02-01 01:14:22 -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.