From b31326dd023bc1bfec67a7c283ab618e29f93528 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 17 Jun 2025 12:14:24 +1000 Subject: [PATCH] plugin: log a debug message when a plugin terminates the event frame list Our last plugin is our own evdev handling code so if the event queue is empty before then that means a plugin has discarded the frame(s). Part-of: --- src/libinput-plugin.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libinput-plugin.c b/src/libinput-plugin.c index 904999a2..5819a954 100644 --- a/src/libinput-plugin.c +++ b/src/libinput-plugin.c @@ -607,6 +607,13 @@ plugin_system_notify_evdev_frame(struct libinput_plugin_system *system, assert(list_empty(&queued_events)); list_chain(&queued_events, &next_events); if (list_empty(&queued_events)) { +#ifdef EVENT_DEBUGGING + if (list_last_entry_by_type(&system->plugins, struct libinput_plugin, link) != plugin) { + log_debug(libinput_device_get_context(device), + "%s: --- empty frame queue - end of events ---\n", + plugin->name); + } +#endif /* No more events to process, stop here */ break; }