aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/xwayland.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 41b8042f..3c893c72 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -21,6 +21,12 @@ struct wlr_xwayland {
struct wl_listener destroy_listener;
struct wlr_xwm *xwm;
struct wl_list displayable_windows;
+
+ struct {
+ struct wl_signal new_surface;
+ } events;
+
+ void *data;
};
struct wlr_x11_window {
@@ -28,15 +34,23 @@ struct wlr_x11_window {
uint32_t surface_id;
struct wl_list link;
- struct wl_resource *surface;
+ struct wlr_surface *surface;
struct wl_listener surface_destroy_listener;
int16_t x, y;
uint16_t width, height;
bool override_redirect;
+
+ struct {
+ struct wl_signal destroy;
+ } events;
+
+ void *data;
};
void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland);
struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
struct wlr_compositor *compositor);
+void wlr_x11_window_activate(struct wlr_xwayland *wlr_xwayland,
+ struct wlr_x11_window *window);
#endif