forked from enlightenment/enlightenment
wl_desktop_shell: Implemented function to show xdg shell surface menu
Summary: Implemented _e_xdg_shell_surface_cb_window_menu_show internal function to show window menu. Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1606
This commit is contained in:
parent
d8b473b5c3
commit
5f57c472b2
|
@ -750,9 +750,22 @@ _e_xdg_shell_surface_cb_app_id_set(struct wl_client *client EINA_UNUSED, struct
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_xdg_shell_surface_cb_window_menu_show(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, struct wl_resource *seat_resource EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x EINA_UNUSED, int32_t y EINA_UNUSED)
|
_e_xdg_shell_surface_cb_window_menu_show(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x, int32_t y)
|
||||||
{
|
{
|
||||||
/* TODO */
|
E_Client *ec;
|
||||||
|
double timestamp;
|
||||||
|
|
||||||
|
/* get the client for this resource */
|
||||||
|
if (!(ec = wl_resource_get_user_data(resource)))
|
||||||
|
{
|
||||||
|
wl_resource_post_error(resource,
|
||||||
|
WL_DISPLAY_ERROR_INVALID_OBJECT,
|
||||||
|
"No Client For Shell Surface");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
timestamp = ecore_loop_time_get();
|
||||||
|
e_int_client_menu_show(ec, x, y, 0, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue