diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-09 10:13:14 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-14 11:26:04 +0000 |
| commit | 3e92361534cdd02e8da8a5f7e8112361b1d6eb67 (patch) | |
| tree | 0f8f82d01ddf696fd7f5d9017212050bfd366c07 /wayland.h | |
| parent | Merge branch 'vt-anywhere-cleanup' (diff) | |
xdg-activation: initial support for setting urgency using XDG activation
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -8,8 +8,14 @@ #include <wayland-client.h> #include <xkbcommon/xkbcommon.h> -#include <primary-selection-unstable-v1.h> +/* Wayland protocols */ #include <presentation-time.h> +#include <primary-selection-unstable-v1.h> +#include <text-input-unstable-v3.h> +#include <xdg-activation-v1.h> +#include <xdg-decoration-unstable-v1.h> +#include <xdg-output-unstable-v1.h> +#include <xdg-shell.h> #include <tllist.h> @@ -377,6 +383,7 @@ struct wl_window { struct wl_surface *surface; struct xdg_surface *xdg_surface; struct xdg_toplevel *xdg_toplevel; + struct xdg_activation_token_v1 *xdg_activation_token; struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration; @@ -444,6 +451,8 @@ struct wayland { struct wl_data_device_manager *data_device_manager; struct zwp_primary_selection_device_manager_v1 *primary_selection_device_manager; + struct xdg_activation_v1 *xdg_activation; + struct wp_presentation *presentation; uint32_t presentation_clock_id; @@ -469,6 +478,8 @@ void wayl_roundtrip(struct wayland *wayl); struct wl_window *wayl_win_init(struct terminal *term); void wayl_win_destroy(struct wl_window *win); +bool wayl_win_set_urgent(struct wl_window *win); + bool wayl_win_subsurface_new( struct wl_window *win, struct wl_surf_subsurf *surf); bool wayl_win_subsurface_new_with_custom_parent( |
