aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-01-16 19:04:26 -0500
committerTony Crisci <tony@dubstepdish.com>2018-01-16 19:04:26 -0500
commit61bd79200cc3892b143b7321886db77e97c9f69f (patch)
tree15befd4b818a8893235604c88ba2a36b8e5ba08f /include
parent3751a1732158546c4fbc203aa34fc4a4a68f1016 (diff)
basic decorations
Diffstat (limited to 'include')
-rw-r--r--include/rootston/cursor.h2
-rw-r--r--include/rootston/input.h2
-rw-r--r--include/rootston/seat.h8
-rw-r--r--include/rootston/view.h3
4 files changed, 15 insertions, 0 deletions
diff --git a/include/rootston/cursor.h b/include/rootston/cursor.h
index 19ac4034..90d54c12 100644
--- a/include/rootston/cursor.h
+++ b/include/rootston/cursor.h
@@ -27,6 +27,8 @@ struct roots_cursor {
float view_rotation;
uint32_t resize_edges;
+ struct roots_seat_view *pointer_view;
+
struct wl_listener motion;
struct wl_listener motion_absolute;
struct wl_listener button;
diff --git a/include/rootston/input.h b/include/rootston/input.h
index 726dda24..2270ea0c 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -9,6 +9,8 @@
#include "rootston/view.h"
#include "rootston/server.h"
+struct roots_view;
+
struct roots_input {
struct roots_config *config;
struct roots_server *server;
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index cf5dd3b2..6ae7c3fa 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -28,6 +28,11 @@ struct roots_seat {
struct roots_seat_view {
struct roots_seat *seat;
struct roots_view *view;
+
+ bool has_button_grab;
+ double grab_vx;
+ double grab_vy;
+
struct wl_list link; // roots_seat::views
struct wl_listener view_destroy;
@@ -84,4 +89,7 @@ void roots_seat_begin_resize(struct roots_seat *seat, struct roots_view *view,
void roots_seat_begin_rotate(struct roots_seat *seat, struct roots_view *view);
+struct roots_seat_view *roots_seat_view_from_view( struct roots_seat *seat,
+ struct roots_view *view);
+
#endif
diff --git a/include/rootston/view.h b/include/rootston/view.h
index a18eda8f..68ccbef8 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -6,6 +6,9 @@
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
+#include "rootston/seat.h"
+
+struct roots_seat;
struct roots_wl_shell_surface {
struct roots_view *view;