Skip to content

Commit a78cef6

Browse files
authored
Create xwayland.h
1 parent 7645fe8 commit a78cef6

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

source-code/xwayland.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#ifndef XWAYLAND_H
2+
#define XWAYLAND_H
3+
4+
#include <wayland-server-core.h>
5+
#include <wlr/types/wlr_xwayland.h>
6+
7+
struct gf_view;
8+
struct gf_server;
9+
10+
struct gf_xwayland_view {
11+
struct gf_view view;
12+
struct wlr_xwayland_surface *xwayland_surface;
13+
struct wl_listener commit;
14+
struct wl_listener map;
15+
struct wl_listener unmap;
16+
struct wl_listener destroy;
17+
struct wl_listener request_configure;
18+
struct wl_listener associate;
19+
struct wl_listener dissociate;
20+
};
21+
22+
struct gf_xwayland_view *xwayland_view_from_view(struct gf_view *view);
23+
bool xwayland_view_should_manage(struct gf_view *view);
24+
void handle_new_xwayland_surface(struct wl_listener *listener, void *data);
25+
26+
#endif /* XWAYLAND_H */

0 commit comments

Comments
 (0)