Find a file
Pekka Paalanen 1da1b8f3f1 Rewrite shm buffer file allocation v2
We had duplicated code in many places, using hardcoded paths for
temporary files into more than one path. Some cases did not bother with
O_CLOEXEC, and all hardcoded paths that might not exist.

Add an OS helper function for creating a unique anonymous file with
close-on-exec semantics. The helper uses $XDG_RUNTIME_DIR as the
directory for a file.

This patch unifies the buffer file creation in both Weston and the
clients.

As simple clients are better not linking to libshared, as it would
require e.g. Cairo, they pull the OS compatibility code directly.

Android does not have mkostemp(), so a configure test is added for it,
and a fallback used if it is not available.

Changes in v2:
	remove all the alternate possible directory definitions and use
	XDG_RUNTIME_DIR only, and fail is it is not set.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-06-06 13:26:30 -04:00
clients Rewrite shm buffer file allocation v2 2012-06-06 13:26:30 -04:00
data window.c: frame_button: Maximize, minimize, close, icon buttons in window frame 2012-05-10 16:19:33 -04:00
protocol shell: Use a busy cursor animation for unresponsive surfaces 2012-06-05 09:58:51 -04:00
shared Rewrite shm buffer file allocation v2 2012-06-06 13:26:30 -04:00
src Rewrite shm buffer file allocation v2 2012-06-06 13:26:30 -04:00
tests Add support for wl_keyboard::keymap events 2012-06-01 11:14:51 -04:00
wcap tests, wcap: update ignores 2012-05-31 13:53:57 -04:00
.gitignore Clean up .gitignore files 2010-11-11 20:11:27 -05:00
autogen.sh Update autotools configuration 2010-11-06 21:04:03 -04:00
configure.ac Rewrite shm buffer file allocation v2 2012-06-06 13:26:30 -04:00
COPYING Add COPYING 2012-04-25 10:17:42 -04:00
Makefile.am wcap: Add option to disable building wcap tools 2012-05-26 13:19:22 -04:00
README Split into a demo repository that holds the demo compositor and clients 2011-02-14 22:13:33 -05:00
weston.ini shell-animation: add conf option in shell 2012-04-25 10:38:19 -04:00

Wayland Demos

This repository contains a few demos application for the Wayland
project.  There's a sample compositor that can run on KMS, under X11
or under another Wayland compositor and there's a handful of simple
clients that demonstrate various aspects of Wayland: