aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-25 22:38:40 +0100
committeremersion <contact@emersion.fr>2018-07-04 19:12:17 +0100
commitadf0423f7cc2758f5c0958038d5b937f531f22d6 (patch)
tree272794ddd8cb716ae5207b0c93a9585ebeae1e21 /include/wlr
parente6399c61b76c9005be228b218126a2f073069600 (diff)
surface: better buffer position handling
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index ca33423e..ad1ee6f6 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -23,7 +23,7 @@ struct wlr_surface_state {
uint32_t committed; // enum wlr_surface_state_field
struct wl_resource *buffer;
- int32_t sx, sy;
+ int32_t dx, dy; // relative to previous position
pixman_region32_t surface_damage, buffer_damage;
pixman_region32_t opaque, input;
enum wl_output_transform transform;
@@ -32,6 +32,7 @@ struct wlr_surface_state {
int width, height; // in surface-local coordinates
int buffer_width, buffer_height;
+ int sx, sy; // in surface-local coordinates
struct wl_listener buffer_destroy_listener;
};