aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/view.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-10 11:15:26 +0100
committeremersion <contact@emersion.fr>2018-07-28 22:48:07 +0100
commit555721f7142e1e363c17820657fb1e2b004e7c54 (patch)
tree61bf9363d2b60a2b62f4e853cf32d960f3a08a1e /include/rootston/view.h
parentb6ed1f29a4dbba93eb53c32ec5492db8ee1d9343 (diff)
Add xdg-decoration-unstable-v1 support
Diffstat (limited to 'include/rootston/view.h')
-rw-r--r--include/rootston/view.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h
index 4e3859d5..69cbc87c 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -4,6 +4,7 @@
#include <wlr/config.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h>
+#include <wlr/types/wlr_xdg_decoration_v1.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/types/wlr_xdg_shell.h>
@@ -190,6 +191,14 @@ struct roots_xdg_popup {
struct wl_listener new_popup;
};
+struct roots_xdg_toplevel_decoration {
+ struct wlr_xdg_toplevel_decoration_v1 *wlr_decoration;
+ struct roots_xdg_surface *surface;
+ struct wl_listener destroy;
+ struct wl_listener request_mode;
+ struct wl_listener surface_commit;
+};
+
void view_get_box(const struct roots_view *view, struct wlr_box *box);
void view_activate(struct roots_view *view, bool active);
void view_move(struct roots_view *view, double x, double y);