rootston: fix damage tracking for SSD

This commit is contained in:
emersion 2018-01-28 10:11:31 +01:00
parent 861d5bdff2
commit 63736be214
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 38 additions and 21 deletions

View file

@ -62,6 +62,7 @@ struct roots_view {
struct wl_list link; // roots_desktop::views
double x, y;
uint32_t width, height;
float rotation;
bool decorated;
@ -108,11 +109,7 @@ struct roots_view {
struct wl_signal destroy;
} events;
// TODO: This would probably be better as a field that's updated on a
// configure event from the xdg_shell
// If not then this should follow the typical type/impl pattern we use
// elsewhere
void (*get_size)(const struct roots_view *view, struct wlr_box *box);
// TODO: this should follow the typical type/impl pattern we use elsewhere
void (*activate)(struct roots_view *view, bool active);
void (*move)(struct roots_view *view, double x, double y);
void (*resize)(struct roots_view *view, uint32_t width, uint32_t height);