diff options
author | Drew DeVault <[email protected]> | 2017-12-04 09:17:58 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2017-12-04 09:17:58 -0500 |
commit | 9fbcdc79b692551cacdfda1f2413517fc556b66f (patch) | |
tree | 2240f512d2e55102b2ad16b4ff13a6c8124947d9 /include/sway/view.h | |
parent | c733e0858fcf9e54dd41f7b8882d5fe722bb01b4 (diff) | |
parent | 0896b6867536e7c12e5345ca5df94b9467c8bf24 (diff) |
Merge pull request #1494 from acrisci/feature/xwayland
xwayland shell
Diffstat (limited to 'include/sway/view.h')
-rw-r--r-- | include/sway/view.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sway/view.h b/include/sway/view.h index 7aa04794..83ac8285 100644 --- a/include/sway/view.h +++ b/include/sway/view.h @@ -3,6 +3,7 @@ #include <wayland-server.h> #include <wlr/types/wlr_surface.h> #include <wlr/types/wlr_xdg_shell_v6.h> +#include <wlr/xwayland.h> struct sway_container; struct sway_view; @@ -19,6 +20,19 @@ struct sway_xdg_surface_v6 { int pending_width, pending_height; }; +struct sway_xwayland_surface { + struct sway_view *view; + + struct wl_listener commit; + struct wl_listener request_move; + struct wl_listener request_resize; + struct wl_listener request_maximize; + struct wl_listener request_configure; + struct wl_listener destroy; + + int pending_width, pending_height; +}; + struct sway_wl_shell_surface { struct sway_view *view; @@ -58,11 +72,13 @@ struct sway_view { union { struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; + struct wlr_xwayland_surface *wlr_xwayland_surface; struct wlr_wl_shell_surface *wlr_wl_shell_surface; }; union { struct sway_xdg_surface_v6 *sway_xdg_surface_v6; + struct sway_xwayland_surface *sway_xwayland_surface; struct sway_wl_shell_surface *sway_wl_shell_surface; }; |