mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
wayland: respond to ping/pong protocol so we're not deemed unresponsive.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
af3b6dc2b8
commit
44d6f7631b
1 changed files with 26 additions and 0 deletions
|
@ -68,6 +68,30 @@ gst_vaapi_window_wayland_hide(GstVaapiWindow *window)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
handle_ping(void *data, struct wl_shell_surface *shell_surface,
|
||||
uint32_t serial)
|
||||
{
|
||||
wl_shell_surface_pong(shell_surface, serial);
|
||||
}
|
||||
|
||||
static void
|
||||
handle_configure(void *data, struct wl_shell_surface *shell_surface,
|
||||
uint32_t edges, int32_t width, int32_t height)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
handle_popup_done(void *data, struct wl_shell_surface *shell_surface)
|
||||
{
|
||||
}
|
||||
|
||||
static const struct wl_shell_surface_listener shell_surface_listener = {
|
||||
handle_ping,
|
||||
handle_configure,
|
||||
handle_popup_done
|
||||
};
|
||||
|
||||
static gboolean
|
||||
gst_vaapi_window_wayland_create(
|
||||
GstVaapiWindow *window,
|
||||
|
@ -94,6 +118,8 @@ gst_vaapi_window_wayland_create(
|
|||
if (!priv->shell_surface)
|
||||
return FALSE;
|
||||
|
||||
wl_shell_surface_add_listener(priv->shell_surface,
|
||||
&shell_surface_listener, priv);
|
||||
wl_shell_surface_set_toplevel(priv->shell_surface);
|
||||
wl_shell_surface_set_fullscreen(
|
||||
priv->shell_surface,
|
||||
|
|
Loading…
Reference in a new issue