From 36cb812ad8725e2b3f2887c3d4a6a16b987dddfb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 22 Jan 2020 14:50:54 -0500 Subject: [PATCH] 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: