mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
xdg-system-bell-v1: add implementation
This commit is contained in:
parent
3ca4bc8c09
commit
ea93dd5cc3
3 changed files with 116 additions and 0 deletions
34
include/wlr/types/wlr_xdg_system_bell_v1.h
Normal file
34
include/wlr/types/wlr_xdg_system_bell_v1.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_TYPES_WLR_XDG_SYSTEM_BELL_V1_H
|
||||
#define WLR_TYPES_WLR_XDG_SYSTEM_BELL_V1_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_xdg_system_bell_v1 {
|
||||
struct wl_global *global;
|
||||
|
||||
struct {
|
||||
struct wl_signal ring; // struct wlr_xdg_system_bell_v1_ring_event
|
||||
} events;
|
||||
|
||||
struct {
|
||||
struct wl_listener display_destroy;
|
||||
} WLR_PRIVATE;
|
||||
};
|
||||
|
||||
struct wlr_xdg_system_bell_v1_ring_event {
|
||||
struct wl_client *client;
|
||||
struct wlr_surface *surface; // May be NULL
|
||||
};
|
||||
|
||||
struct wlr_xdg_system_bell_v1 *wlr_xdg_system_bell_v1_create(struct wl_display *display,
|
||||
uint32_t version);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue