type = argv[2];
if (eina_streq(type, "key_input_ttrace_enable") ||
- eina_streq(type, "input_log_enable") ||
- eina_streq(type, "buffer_serial_log_enable"))
+ eina_streq(type, "input_log_enable"))
{
msg = eldbus_proxy_method_call_new(e_info_client.proxy, "log_control");
itr = eldbus_message_iter_get(msg);
{
e_info_server_input_log_enable_set(onoff);
}
- else if (!e_util_strcmp("buffer_serial_log_enable", type))
- {
- e_comp_wl_trace_serial_debug(onoff);
- }
return reply;
}
};
static Eina_Bool _e_comp_wl_cursor_timer_control(Evas_Callback_Type type, E_Comp_Wl_Data *comp_wl, E_Client *ec);
-static void _e_comp_wl_surface_state_serial_update(E_Client *ec, E_Comp_Wl_Buffer *buffer);
/* local variables */
typedef struct _E_Comp_Wl_Key_Data
};
static Eina_List *hooks = NULL;
-static Eina_Bool serial_trace_debug = 0;
static E_Input_Hook *input_hook = NULL;
_e_comp_wl_surface_state_buffer_set(state, buffer);
}
-EINTERN void
-e_comp_wl_trace_serial_debug(Eina_Bool on)
-{
- if (on == serial_trace_debug) return;
- serial_trace_debug = on;
- ELOGF("COMP", "serial trace_debug %s", NULL, (on ? "ON" : "OFF"));
-}
-
-static void
-_e_comp_wl_surface_state_serial_update(E_Client *ec, E_Comp_Wl_Buffer *buffer)
-{
- uint32_t serial = 0;
-
- if (!buffer) return;
-
- serial = wayland_tbm_server_buffer_get_buffer_serial(buffer->resource);
- ec->surface_sync.serial = serial;
-
- if (serial_trace_debug)
- ELOGF("COMP", "Update serial(%u) wl_buffer(%u)", ec, serial, wl_resource_get_id(buffer->resource));
-}
-
static void
_e_comp_wl_input_thread_input_area_clear(void *data)
{
static void
_e_comp_wl_client_buffer_set(E_Client *ec, E_Comp_Wl_Buffer *buffer)
{
- _e_comp_wl_surface_state_serial_update(ec, buffer);
e_comp_wl_surface_attach(ec, buffer);
}
// --------------------------------------------------------
EINTERN Eina_Bool
e_comp_wl_commit_sync_client_geometry_add(E_Client *ec,
- uint32_t serial,
int32_t x,
int32_t y,
int32_t w,
geo = E_NEW(E_Client_Pending_Geometry, 1);
if (!geo) goto err;
- geo->serial = serial;
geo->x = x;
geo->y = y;
geo->w = w;
}
}
- if (!e_comp_wl_commit_sync_client_geometry_add(ec, serial, x, y, w, h)) goto err;
+ if (!e_comp_wl_commit_sync_client_geometry_add(ec, x, y, w, h)) goto err;
return;
err:
EINTERN void e_comp_wl_feed_focus_in(E_Client *ec);
-EINTERN Eina_Bool e_comp_wl_commit_sync_client_geometry_add(E_Client *ec, uint32_t serial, int32_t x, int32_t y, int32_t w, int32_t h);
+EINTERN Eina_Bool e_comp_wl_commit_sync_client_geometry_add(E_Client *ec, int32_t x, int32_t y, int32_t w, int32_t h);
EINTERN Eina_Bool e_comp_wl_commit_sync_configure(E_Client *ec);
EINTERN void e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state);
EINTERN Eina_Bool e_comp_wl_move_resize_init(void);
EINTERN void e_comp_wl_move_resize_shutdown(void);
-EINTERN void e_comp_wl_trace_serial_debug(Eina_Bool on);
-
EINTERN void e_comp_wl_surface_mouse_button_send(E_Comp_Wl_Data *comp_wl, struct wl_resource *surface, uint32_t timestamp, uint32_t button_id, uint32_t state);
EINTERN void e_comp_wl_surface_mouse_wheel_send(E_Comp_Wl_Data *comp_wl, struct wl_resource *surface, int direction, int z, int timestamp);
EINTERN void e_comp_wl_surface_device_renew_axis(const char *dev_name, Evas_Device_Class dev_class, struct wl_resource *surface, unsigned int idx, double radius_x, double radius_y, double pressure, double angle);
{
// if there is geometry pending list, add move job at the end of the list.
// so client to be applied new position at the same time with the pending requests
- // pending geometries are flushed when 'wl surface commit' and matched serial are delivered.
+ // pending geometries are flushed when 'wl surface commit' and matched geometry are delivered.
int w, h;
e_client_pending_geometry_last_geometry_get(ec, NULL, NULL, &w, &h);
- e_comp_wl_commit_sync_client_geometry_add(ec, ec->surface_sync.serial, x, y, w, h);
+ e_comp_wl_commit_sync_client_geometry_add(ec, x, y, w, h);
}
else
{
struct _E_Client_Pending_Geometry
{
int x, y, w, h;
- unsigned int serial;
+ E_DEPRECATED unsigned int serial;
};
struct _E_Client
struct
{
Eina_Bool wait_commit : 1;
- unsigned int serial;
+ E_DEPRECATED unsigned int serial;
Eina_List *pending_geometry; // E_Client_Pending_Geometry
} surface_sync;
"\t key_input_ttrace_enable\n" \
"Example:\n" \
"\twinfo -log input_log_enable 1\n" \
- "\twinfo -log key_input_ttrace_enable 1\n" \
- "\twinfo -log buffer_serial_log_enable 1\n"
+ "\twinfo -log key_input_ttrace_enable 1\n"
/* -------------------------------------------------------------------------- */
/* VIDEO SHELL */