aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-07 13:04:04 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-07 13:04:04 -0400
commit4f848000af6bdf57a6e861e69a53677f23133202 (patch)
tree341aca21d2cfd2b24021e83c4f85fa68b9f4618a /include/rootston
parent4680943e749bfd441d31c988faa50f2b1ae043ad (diff)
parent321c26c2a3c77ddba52e1a6194669328e473fdb4 (diff)
Merge branch 'master' into feature/xdg-popup
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/input.h2
-rw-r--r--include/rootston/view.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h
index 4b9bd1dd..e20446ea 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -81,7 +81,7 @@ struct roots_input {
struct wlr_seat *wl_seat;
enum roots_cursor_mode mode;
- struct roots_view *active_view;
+ struct roots_view *active_view, *last_active_view;
int offs_x, offs_y;
int view_x, view_y, view_width, view_height;
float view_rotation;
diff --git a/include/rootston/view.h b/include/rootston/view.h
index 39ff80db..64aad45e 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -65,11 +65,13 @@ struct roots_view {
void (*get_input_bounds)(struct roots_view *view, struct wlr_box *box);
void (*activate)(struct roots_view *view, bool active);
void (*resize)(struct roots_view *view, uint32_t width, uint32_t height);
+ void (*close)(struct roots_view *view);
};
void view_get_size(struct roots_view *view, struct wlr_box *box);
void view_get_input_bounds(struct roots_view *view, struct wlr_box *box);
void view_activate(struct roots_view *view, bool active);
void view_resize(struct roots_view *view, uint32_t width, uint32_t height);
+void view_close(struct roots_view *view);
#endif