Go to file
Jonas Ådahl d696fd3021 wayland: Don't handle input events after capability was removed
The seat capability updating is synchronous, but input events are
asynchronous (first queued then emitted). This means we may end up in a
situation where we from libinput first may receive a key event,
immediately followed by a device-removed event. Clutter will first
queue the key event, then remove the device, immediately triggering the
seat capability removal.

Later, when the clutter stage processes the queued events, the
previously queued key event will be processed, eventually making it
into MetaWaylandSeat. Before this patch, MetaWaylandSeat would still
forward the key event to MetaWaylandKeyboard, even though it had
'released' it. Doing this would cause referencing potentially freed
memory, such as the xkb state that was unreferenced when the seat
removed the capability.

In order to avoid processing these lingering events, for now, just drop
them on the floor if the capability has been removed.

Eventually, the event queuing etc needs to be redesigned to work better
when used in a Wayland compositor, but for now at least don't access
freed memory.

https://bugzilla.gnome.org/show_bug.cgi?id=770727
2016-09-02 21:11:08 +08:00
clutter clutter/evdev: Fix absolute pointer motion events 2016-08-30 15:48:30 +08:00
cogl cogl/egl: Fix non-Wayland build 2016-09-02 17:04:11 +08:00
data build: Say good-bye to intltool 2016-08-19 11:04:48 +02:00
doc Remove gtk-doc 2015-07-06 00:52:18 -07:00
po Updated Serbian translation 2016-08-28 11:13:33 +02:00
src wayland: Don't handle input events after capability was removed 2016-09-02 21:11:08 +08:00
tools Clean up the source tree 2014-03-18 20:37:35 -04:00
.gitignore wayland: Add support for the xdg-foreign protocol 2016-08-22 21:03:41 +08:00
autogen.sh build: Drop deprecated autogen.sh variables 2015-03-04 21:00:48 +01:00
configure.ac Bump version to 3.21.91 2016-08-30 00:58:08 +02:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-13 11:35:48 -05:00
Makefile.am Fix the merged build 2016-04-27 20:37:47 +02:00
mutter.doap doap: add <programming-language> 2014-07-31 17:50:28 +02:00
NEWS Bump version to 3.21.91 2016-08-30 00:58:08 +02:00