e_seat: add logs when send events 31/321331/1
authorduna.oh <duna.oh@samsung.com>
Fri, 14 Mar 2025 11:05:08 +0000 (20:05 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 19 Mar 2025 05:04:16 +0000 (14:04 +0900)
Change-Id: I5857e73d1432ced0d7c8126e98064f11a34dfc17

src/bin/server/e_seat.c

index c4fcb54a82dafa61f332a5093ad122ab69736072..e5892ce42510cae1e75482b73358424538f1ceca 100644 (file)
@@ -920,8 +920,11 @@ e_seat_pointer_send_enter(E_Seat *seat, struct wl_client *wc, E_Client *ec,
         if (wl_resource_get_client(res) != wc) continue;
         if (!e_seat_pointer_check(res)) continue;
 
+        TRACE_INPUT_BEGIN(e_seat_pointer_send_enter);
+        ELOGF("Mouse", "Enter (x:%d, y:%d)", NULL, x, y);
         wl_pointer_send_enter(res, serial, surface,
                               wl_fixed_from_int(x), wl_fixed_from_int(y));
+        TRACE_INPUT_END();
 
         if (ec)
           ec->pointer_enter_sent = EINA_TRUE;
@@ -936,8 +939,11 @@ iterate:
              if (wl_resource_get_client(res) != wc) continue;
              if (!e_seat_pointer_check(res)) continue;
 
+             TRACE_INPUT_BEGIN(e_seat_pointer_send_enter);
+             ELOGF("Mouse", "Enter (x:%d, y:%d)", NULL, x, y);
              wl_pointer_send_enter(res, serial, surface,
                                    wl_fixed_from_int(x), wl_fixed_from_int(y));
+             TRACE_INPUT_END();
 
              if (ec)
                ec->pointer_enter_sent = EINA_TRUE;
@@ -965,7 +971,10 @@ e_seat_pointer_send_leave(E_Seat *seat, struct wl_client *wc, E_Client *ec,
         if (!e_seat_pointer_check(res)) continue;
         if (ec && ec->pointer_enter_sent == EINA_FALSE) continue;
 
+        TRACE_INPUT_BEGIN(e_seat_pointer_send_leave);
+        ELOGF("Mouse", "Leave", NULL);
         wl_pointer_send_leave(res, serial, surface);
+        TRACE_INPUT_END();
 
         if (ec)
           ec->pointer_enter_sent = EINA_FALSE;
@@ -981,7 +990,10 @@ iterate:
              if (!e_seat_pointer_check(res)) continue;
              if (ec && ec->pointer_enter_sent == EINA_FALSE) continue;
 
+             TRACE_INPUT_BEGIN(e_seat_pointer_send_leave);
+             ELOGF("Mouse", "Leave", NULL);
              wl_pointer_send_leave(res, serial, surface);
+             TRACE_INPUT_END();
 
              if (ec)
                ec->pointer_enter_sent = EINA_FALSE;
@@ -1008,7 +1020,7 @@ e_seat_pointer_send_button(E_Seat *seat, struct wl_client *wc,
         if (wl_resource_get_client(res) != wc) continue;
         if (!e_seat_pointer_check(res)) continue;
 
-        TRACE_INPUT_BEGIN(e_comp_wl_surface_mouse_button);
+        TRACE_INPUT_BEGIN(e_seat_pointer_send_button);
         ELOGF("Mouse", "Button %s (btn: %d, time: %d)", NULL, (state ? "Down" : "Up"), button, timestamp);
         wl_pointer_send_button(res, serial, timestamp,
                                button, state);
@@ -1024,8 +1036,11 @@ iterate:
              if (wl_resource_get_client(res) != wc) continue;
              if (!e_seat_pointer_check(res)) continue;
 
+             TRACE_INPUT_BEGIN(e_seat_pointer_send_button);
+             ELOGF("Mouse", "Button %s (btn: %d, time: %d)", NULL, (state ? "Down" : "Up"), button, timestamp);
              wl_pointer_send_button(res, serial, timestamp,
                                     button, state);
+             TRACE_INPUT_END();
           }
      }
 }