mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
xdg-activation: initial support for setting urgency using XDG activation
This commit is contained in:
parent
95bbab8fba
commit
3e92361534
4 changed files with 89 additions and 10 deletions
13
wayland.h
13
wayland.h
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue