summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-10-06 15:04:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-10-06 16:12:17 +1000
commit7244e36b501b5c13bfed085cd57db5a3d2d0f5f3 (patch)
tree3b6a705d851fc9c4be1dce83695735d32d334f7d /tools
parentec939611fd2bda5bf379d79295a0c9b4282e3b23 (diff)
downloadlibinput-7244e36b501b5c13bfed085cd57db5a3d2d0f5f3.tar.gz
tools: only call libinput_dispatch() once per poll
This is a closer approximation of all callers anyway, and it makes it easier to debug which events are handled per libinput_dispatch() call. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-debug-events.c1
-rw-r--r--tools/libinput-debug-gui.c1
-rw-r--r--tools/libinput-debug-tablet.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c
index 2921630f..433bfc87 100644
--- a/tools/libinput-debug-events.c
+++ b/tools/libinput-debug-events.c
@@ -917,7 +917,6 @@ handle_and_print_events(struct libinput *li)
}
libinput_event_destroy(ev);
- libinput_dispatch(li);
rc = 0;
}
return rc;
diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c
index 3d7df1b2..70e41e16 100644
--- a/tools/libinput-debug-gui.c
+++ b/tools/libinput-debug-gui.c
@@ -1487,7 +1487,6 @@ handle_event_libinput(GIOChannel *source, GIOCondition condition, gpointer data)
}
libinput_event_destroy(ev);
- libinput_dispatch(li);
}
gtk_widget_queue_draw(w->area);
diff --git a/tools/libinput-debug-tablet.c b/tools/libinput-debug-tablet.c
index 642f1e22..08d3e432 100644
--- a/tools/libinput-debug-tablet.c
+++ b/tools/libinput-debug-tablet.c
@@ -390,7 +390,6 @@ handle_libinput_events(struct context *ctx)
}
libinput_event_destroy(ev);
- libinput_dispatch(li);
}
}