compositor: introduce weston_surface_geometry_dirty()
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in a following patch. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
f1f48cfa35
commit
c3ce738653
@@ -823,7 +823,7 @@ weston_wm_window_draw_decoration(void *data)
|
||||
x - 1, y - 1,
|
||||
window->width + 2,
|
||||
window->height + 2);
|
||||
window->surface->geometry.dirty = 1;
|
||||
weston_surface_geometry_dirty(window->surface);
|
||||
}
|
||||
|
||||
if (window->surface && !window->fullscreen) {
|
||||
@@ -847,7 +847,7 @@ weston_wm_window_schedule_repaint(struct weston_wm_window *window)
|
||||
pixman_region32_fini(&window->surface->pending.opaque);
|
||||
pixman_region32_init_rect(&window->surface->pending.opaque, 0, 0,
|
||||
width, height);
|
||||
window->surface->geometry.dirty = 1;
|
||||
weston_surface_geometry_dirty(window->surface);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user