aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-21 11:13:18 -0500
committerGitHub <noreply@github.com>2017-11-21 11:13:18 -0500
commit1228d0da19edbfc1730b6918760aef444fac8887 (patch)
tree16643d4bf7029657eaf86656bd98c77b98961a0c /include/rootston
parent6bde8dd56beebc429445196d7d4a120677289317 (diff)
parent1d08d317096a80f96d03cd67303381bdedaaac2a (diff)
Merge pull request #387 from emersion/laggy-move-resize
Fix laggy move-resize
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/view.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h
index 69034d60..0f13b2d6 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -26,6 +26,8 @@ struct roots_xdg_surface_v6 {
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener request_maximize;
+
+ uint32_t pending_move_resize_configure_serial;
};
struct roots_xwayland_surface {
@@ -38,6 +40,8 @@ struct roots_xwayland_surface {
struct wl_listener request_maximize;
struct wl_listener map_notify;
struct wl_listener unmap_notify;
+
+ struct wl_listener surface_commit;
};
enum roots_view_type {
@@ -60,6 +64,12 @@ struct roots_view {
float rotation;
} saved;
+ struct {
+ bool update_x, update_y;
+ double x, y;
+ uint32_t width, height;
+ } pending_move_resize;
+
// TODO: Something for roots-enforced width/height
enum roots_view_type type;
union {