blob: 50be0aaed11f7bdbe45d8bf6a29b7fd133fafc2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
* 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_XWAYLAND_SHELL_H
#define WLR_XWAYLAND_SHELL_H
#include <stdbool.h>
#include <wayland-server-core.h>
/**
* The Xwayland shell.
*
* This is a shell only exposed to Xwayland.
*/
struct wlr_xwayland_shell_v1 {
struct wl_global *global;
struct {
struct wl_signal new_surface; // struct wlr_xwayland_surface_v1
} events;
// private state
struct wl_listener display_destroy;
};
/**
* An Xwayland shell surface.
*/
struct wlr_xwayland_surface_v1 {
struct wlr_surface *surface;
uint64_t serial;
// private state
struct wl_resource *resource;
struct wlr_xwayland_shell_v1 *shell;
bool added;
struct wl_listener surface_destroy;
};
/**
* Create the xwayland_shell_v1 global.
*
* Compositors should add a global filter (see wl_display_set_global_filter())
* to only expose this global to Xwayland clients.
*/
struct wlr_xwayland_shell_v1 *wlr_xwayland_shell_v1_create(
struct wl_display *display, uint32_t version);
#endif
|