Find a file
U. Artie Eoff cf5737aa41 shell: assert get_shell_surface() != NULL as appropriate
Various functions that operate on a weston_surface assume the
surface has a shell_surface.  That is, they unconditionally
deref the get_shell_surface() result.  Hence, if for some reason
the call to get_shell_surface() returned NULL to those functions then
a segmentation fault would occur and the program would crash.  So,
adding an assert(...) on the get_shell_surface() return value adds an
extra sanity check and does not change this behavior.  The assert also
adds an extra benefit to the programmer by documenting that the function
expects and requires the weston_surface to have a shell_surface and
would be a program logic error, otherwise.

The assert() also silences some static analyzers about the possible
NULL deref.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2014-01-19 22:06:05 -08:00
clients clients/window: fail if NULL returned from frame_create 2014-01-19 22:03:50 -08:00
data window.c: frame_button: Maximize, minimize, close, icon buttons in window frame 2012-05-10 16:19:33 -04:00
desktop-shell shell: assert get_shell_surface() != NULL as appropriate 2014-01-19 22:06:05 -08:00
man weston.ini.man: Fix some grammar 2014-01-17 11:11:31 -08:00
protocol protocol: rename wl_surface_scaler to wl_viewport 2014-01-08 21:33:19 -08:00
shared os: use posix_fallocate in creating sharable buffers 2013-12-02 16:20:27 -08:00
src screenshooter: check for NULL malloc and fix memleaks 2014-01-19 22:00:39 -08:00
tests gitignore: Generated files text-client-protocol.h, text-protocol.c 2014-01-17 11:32:01 -08:00
wcap wcap-decode: remove dead code 2014-01-19 21:59:37 -08:00
xwayland Fix XWayland crashes when opening popups 2014-01-17 11:59:56 -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: fix commit that changed option for installing client 2014-01-02 15:46:33 -08:00
COPYING Add COPYING 2012-04-25 10:17:42 -04:00
Makefile.am Makefile.am: Clean generated weston.ini on make clean 2013-12-16 23:12:46 -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
wayland-scanner.mk autotools: Don't use wayland-scanner.m4 2013-08-20 11:15:19 -07: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.