From eaf6c0ccf4a8fc78580a49335adb1783dbebd9af Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 23 Sep 2017 17:48:13 -0400 Subject: Implement pointer motion and buttons --- include/rootston/view.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/rootston/view.h') diff --git a/include/rootston/view.h b/include/rootston/view.h index 9535094b..9e7c4a01 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -1,8 +1,9 @@ #ifndef _ROOTSTON_VIEW_H #define _ROOTSTON_VIEW_H #include -#include +#include #include +#include struct roots_wl_shell_surface { // TODO @@ -41,6 +42,15 @@ struct roots_view { }; struct wlr_surface *wlr_surface; struct wl_list link; + // TODO: This would probably be better as a field that's updated on a + // configure event from the xdg_shell + // If not then this should follow the typical type/impl pattern we use + // elsewhere + void (*get_input_bounds)(struct roots_view *view, struct wlr_box *box); + void (*activate)(struct roots_view *view, bool active); }; +void view_get_input_bounds(struct roots_view *view, struct wlr_box *box); +void view_activate(struct roots_view *view, bool active); + #endif -- cgit v1.2.3