wayland/src
Manuel Stoeckl ada25fbd52 client: print discarded events in debug log
Before this patch, setting WAYLAND_DEBUG=1 or WAYLAND_DEBUG=client made
a program log all requests sent and events that it processes. However,
some events received are not processed. This can happen when a Wayland
server sends an event to an object that does not exist, or was recently
destroyed by the client program (either before the event was decoded,
or after being decoded but before being dispatched.)

This commit prints all discarded messages in the debug log, producing
lines like:

[1234567.890] discarded [unknown]@42.[event 0](0 fd, 12 byte)
[1234567.890] discarded wl_callback@3.done(34567)
[1234567.890] discarded [zombie]@13.[event 1](3 fd, 8 byte)

The first indicates an event to an object that does not exist; the
second, an event to an object that was deleted after decoding, but
before dispatch; the third, an event to an object that left a
'zombie' marker behind to indicate which events have associated
file descriptors.

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
2021-07-20 09:20:38 +00:00
..
.gitignore ignore: Add *.dtd.embed 2016-03-10 22:24:20 -08:00
connection.c client: print discarded events in debug log 2021-07-20 09:20:38 +00:00
embed.py build: replace assembly embedding with Python script 2021-05-10 22:08:45 +00:00
event-loop.c src: Add missing new lines to log messages 2021-05-07 11:07:54 +03:00
meson.build build: replace assembly embedding with Python script 2021-05-10 22:08:45 +00:00
scanner.c scanner: Use descriptions in entries 2021-07-07 12:11:42 +00:00
wayland-client-core.h proxy: Add API to tag proxy objects 2019-07-29 16:47:36 +00:00
wayland-client.c client: print discarded events in debug log 2021-07-20 09:20:38 +00:00
wayland-client.h doc: Formalize file comment in wayland-client.h, wayland-server.h 2016-05-11 11:03:27 -07:00
wayland-os.c Change wl_os_dupfd_cloexec minfd to be int 2021-04-15 07:34:53 +00:00
wayland-os.h Change wl_os_dupfd_cloexec minfd to be int 2021-04-15 07:34:53 +00:00
wayland-private.h client: print discarded events in debug log 2021-07-20 09:20:38 +00:00
wayland-server-core.h server: add wl_display getter for wl_global 2021-03-05 09:12:33 +00:00
wayland-server-private.h Move wl_priv_signal to wayland-server-private.h 2019-11-06 08:24:14 -06:00
wayland-server.c client: print discarded events in debug log 2021-07-20 09:20:38 +00:00
wayland-server.h wayland-server: Finally remove deprecated struct wl_buffer definition 2018-07-25 12:08:16 -05:00
wayland-shm.c shm: document wl_shm_buffer 2021-07-13 15:52:31 +02:00
wayland-util.c wayland-util: avoid memcpy(NULL) in wl_array_copy() 2021-07-14 07:21:40 +00:00
wayland-util.h util: fix compiler warning 2020-02-24 11:02:44 +00:00
wayland-version.h.in src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00