Find a file
Pekka Paalanen 77cbc951cb window: clean up redraw and focuses on destroy
Currently, the way to destroy a window in a response to an event (e.g.
button click), is to put a task into the deferred list with
display_defer(). The task will then call window_destroy() from outside
event handling code.

As events are handled, it is possible that the deferred list contains
also the redraw task for this window. As the execution order of these
tasks is unknown (redrawing a freed window is a bug) and redrawing
something that goes away immediately is not useful, the redraw task must
be removed on window_destroy().

'struct input' contains pointers to windows currently in focus for that
input device. These pointers must also be cleared on window_destroy().
This fixes a use-after-free bug for the unlock dialog in desktop-shell
(future commit).

As an irrelevant minor cleanup, window::grab_device member is not used
anywhere, and is removed.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-11-15 16:43:24 -05:00
clients window: clean up redraw and focuses on destroy 2011-11-15 16:43:24 -05:00
compositor compositor: implement screen locking 2011-11-15 16:43:24 -05:00
data Fix out of source build [wayland.png] 2011-01-30 20:56:01 -05:00
protocol desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05: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 De-brand the tablet shell 2011-11-14 15:57:59 -05:00
Makefile.am configure: set up simple clients independently from the others 2011-07-21 08:42:58 -07:00
README Split into a demo repository that holds the demo compositor and clients 2011-02-14 22:13:33 -05:00
wayland-desktop-shell.ini desktop-shell: Add sample ini file 2011-11-14 22:57:14 -05: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: