[gtk] surface: Add enter/leave events to profiler traces
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] surface: Add enter/leave events to profiler traces
- Date: Wed, 22 Jan 2020 20:13:43 +0000 (UTC)
commit 36cb812ad8725e2b3f2887c3d4a6a16b987dddfb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 22 14:50:54 2020 -0500
surface: Add enter/leave events to profiler traces
These are just as likely to trigger extra work than
other mouse events, so it is useful to show them.
gdk/gdksurface.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 8424576238..0b51f78c02 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -4072,6 +4072,9 @@ add_event_mark (GdkEvent *event,
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY:
+ message = g_strdup ("");
+ break;
+
case GDK_TOUCHPAD_SWIPE:
case GDK_TOUCHPAD_PINCH:
case GDK_SCROLL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]