mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 06:10:06 +01:00
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:
parent
a6f7f55178
commit
b31326dd02
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue