aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 12:05:21 +0100
committeremersion <contact@emersion.fr>2017-11-20 12:05:21 +0100
commit0153a0ed8fb934333505ee7793b1c493d8d0cd35 (patch)
treefa4ee9935976ad04b14b23abb57d735d8b38f842 /include
parentac6385689f8a4895888f069afeae037edc7c7e19 (diff)
Fix laggy move-resize for xwayland views
Diffstat (limited to 'include')
-rw-r--r--include/rootston/view.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h
index 058dc73e..66fc88bc 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -29,12 +29,7 @@ struct roots_xdg_surface_v6 {
struct wl_listener request_resize;
struct wl_listener request_maximize;
- struct {
- uint32_t configure_serial;
- double x, y;
- bool update_x, update_y;
- uint32_t width, height;
- } move_resize;
+ uint32_t pending_move_resize_configure_serial;
};
struct roots_xwayland_surface {
@@ -48,6 +43,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 {
@@ -69,6 +66,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 {