Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtk-wayland: handle xdg_wm_base::ping #174

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/gtk-wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ static struct zwlr_layer_shell_v1 *layer_shell_global = NULL;

static gboolean has_initialized = FALSE;

static void
xdg_wm_base_handle_ping (void *_data, struct xdg_wm_base *xdg_wm_base, uint32_t serial)
{
(void)_data;

xdg_wm_base_pong (xdg_wm_base, serial);
}

static const struct xdg_wm_base_listener xdg_wm_base_listener = {
.ping = xdg_wm_base_handle_ping,
};

gboolean
gtk_wayland_get_has_initialized (void)
{
Expand Down Expand Up @@ -71,6 +83,7 @@ wl_registry_handle_global (void *_data,
id,
&xdg_wm_base_interface,
MIN((uint32_t)xdg_wm_base_interface.version, version));
xdg_wm_base_add_listener (xdg_wm_base_global, &xdg_wm_base_listener, NULL);
}
}

Expand Down
Loading