surface: Add enter/leave events to profiler traces
authorMatthias Clasen <mclasen@redhat.com>
Wed, 22 Jan 2020 19:50:54 +0000 (14:50 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 22 Jan 2020 20:12:03 +0000 (15:12 -0500)
These are just as likely to trigger extra work than
other mouse events, so it is useful to show them.

gdk/gdksurface.c

index 8424576238bcbce2db3258b0d2650a210e2cf538..0b51f78c02960ec228033ea6bddeb7d1e42273de 100644 (file)
@@ -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: