surface: do not monkey-patch state damage

This commit is contained in:
emersion 2018-06-25 23:35:02 +01:00
parent adf0423f7c
commit 233bfe2f4f
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 89 additions and 90 deletions

View file

@ -33,6 +33,7 @@ struct wlr_surface_state {
int width, height; // in surface-local coordinates
int buffer_width, buffer_height;
int sx, sy; // in surface-local coordinates
pixman_region32_t damage; // in buffer-local coordinates
struct wl_listener buffer_destroy_listener;
};