[gtk/matthiasc/for-master: 4/5] surface: Add enter/leave events to profiler traces



commit 6769a41e66ab94ad483007e5d551bbce493a7fcd
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]