diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-20 09:30:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 09:30:52 -0500 |
commit | d4de2bd708357a5025331bd2177095576b4a38b7 (patch) | |
tree | 3dafe31d805ea4d1e7e744bbbcd4926b8af2de5c /include | |
parent | 0db2a687b7afcfe2f52a25b175f1920700afa9ed (diff) | |
parent | 86f263a0b827a1df412f80c6f81ef9ef0f476829 (diff) |
Merge pull request #1476 from emersion/fullscreen-shell
fullscreen-shell-v1: initial protocol implementation
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/meson.build | 1 | ||||
-rw-r--r-- | include/wlr/types/wlr_fullscreen_shell_v1.h | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/include/wlr/types/meson.build b/include/wlr/types/meson.build index e245dc4e..86f128b6 100644 --- a/include/wlr/types/meson.build +++ b/include/wlr/types/meson.build @@ -7,6 +7,7 @@ install_headers( 'wlr_data_device.h', 'wlr_export_dmabuf_v1.h', 'wlr_foreign_toplevel_management_v1.h', + 'wlr_fullscreen_shell_v1.h', 'wlr_gamma_control_v1.h', 'wlr_gamma_control.h', 'wlr_gtk_primary_selection.h', diff --git a/include/wlr/types/wlr_fullscreen_shell_v1.h b/include/wlr/types/wlr_fullscreen_shell_v1.h new file mode 100644 index 00000000..a904d966 --- /dev/null +++ b/include/wlr/types/wlr_fullscreen_shell_v1.h @@ -0,0 +1,41 @@ +/* + * 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_FULLSCREEN_SHELL_V1_H +#define WLR_TYPES_WLR_FULLSCREEN_SHELL_V1_H + +#include <wayland-server.h> +#include "fullscreen-shell-unstable-v1-protocol.h" + +struct wlr_fullscreen_shell_v1 { + struct wl_global *global; + struct wl_list resources; + + struct { + struct wl_signal destroy; + // wlr_fullscreen_shell_v1_present_surface_event + struct wl_signal present_surface; + } events; + + struct wl_listener display_destroy; + + void *data; +}; + +struct wlr_fullscreen_shell_v1_present_surface_event { + struct wl_client *client; + struct wlr_surface *surface; // can be NULL + enum zwp_fullscreen_shell_v1_present_method method; + struct wlr_output *output; // can be NULL +}; + +struct wlr_fullscreen_shell_v1 *wlr_fullscreen_shell_v1_create( + struct wl_display *display); +void wlr_fullscreen_shell_v1_destroy(struct wlr_fullscreen_shell_v1 *shell); + +#endif |