diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-03 14:21:26 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-03 14:21:26 -0500 |
commit | 8239067da42545a59dbb43b941f69470d501f544 (patch) | |
tree | ede4a498ffd3f354ac85f296c4b45aed07aaa6ff /include/sway | |
parent | 59db38ce17e04b19c25e06f0fd3622b2adace99f (diff) |
basic wl-shell
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/server.h | 3 | ||||
-rw-r--r-- | include/sway/view.h | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index 1901e39f..bfdb7b8a 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -30,6 +30,9 @@ struct sway_server { struct wlr_xdg_shell_v6 *xdg_shell_v6; struct wl_listener xdg_shell_v6_surface; + + struct wlr_wl_shell *wl_shell; + struct wl_listener wl_shell_surface; }; struct sway_server server; diff --git a/include/sway/view.h b/include/sway/view.h index 77d451e5..22f5ccf9 100644 --- a/include/sway/view.h +++ b/include/sway/view.h @@ -19,6 +19,18 @@ struct sway_xdg_surface_v6 { int pending_width, pending_height; }; +struct sway_wl_shell_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 destroy; + + int pending_width, pending_height; +}; + enum sway_view_type { SWAY_WL_SHELL_VIEW, SWAY_XDG_SHELL_V6_VIEW, |