From ada7fde6fbb1d4cc85f61ef03c8139bf92a9ca10 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 28 Sep 2017 19:48:55 -0400 Subject: DRY up focus and implement z ordering --- include/rootston/desktop.h | 3 ++- include/rootston/input.h | 4 ++++ include/rootston/view.h | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include/rootston') diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index 5e138c11..392b0271 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "rootston/view.h" #include "rootston/config.h" @@ -21,7 +22,7 @@ struct roots_output { }; struct roots_desktop { - struct wl_list views; + list_t *views; struct wl_list outputs; struct timespec last_frame; diff --git a/include/rootston/input.h b/include/rootston/input.h index 0ace6cd1..aeab9c0d 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -106,5 +106,9 @@ void cursor_load_config(struct roots_config *config, struct wlr_cursor *cursor, struct roots_input *input, struct roots_desktop *desktop); +const struct roots_input_event *get_input_event(struct roots_input *input, + uint32_t serial); +void view_begin_move(struct roots_input *input, struct wlr_cursor *cursor, + struct roots_view *view); #endif diff --git a/include/rootston/view.h b/include/rootston/view.h index 9cc2fe04..da3b189d 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -56,7 +56,6 @@ struct roots_view { struct roots_xwayland_surface *roots_xwayland_surface; }; 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 -- cgit v1.2.3