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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1229>
This commit is contained in:
Peter Hutterer 2025-06-17 12:14:24 +10:00 committed by Marge Bot
parent a6f7f55178
commit b31326dd02

View file

@ -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;
}