rootston: replace view_damage with view_apply_damage and view_damage_whole

This commit is contained in:
emersion 2018-01-18 16:30:56 +01:00
parent 7f5a538cb7
commit 96d6f34edd
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 35 additions and 17 deletions

View file

@ -220,7 +220,7 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
view->pending_move_resize.update_y = false;
}
view_damage(view);
view_apply_damage(view);
}
static void handle_map_notify(struct wl_listener *listener, void *data) {
@ -233,7 +233,7 @@ static void handle_map_notify(struct wl_listener *listener, void *data) {
view->wlr_surface = xsurface->surface;
view->x = xsurface->x;
view->y = xsurface->y;
view_damage(view);
view_damage_whole(view);
roots_surface->surface_commit.notify = handle_surface_commit;
wl_signal_add(&xsurface->surface->events.commit,
@ -246,7 +246,7 @@ static void handle_unmap_notify(struct wl_listener *listener, void *data) {
struct roots_xwayland_surface *roots_surface =
wl_container_of(listener, roots_surface, unmap_notify);
view_damage(roots_surface->view);
view_damage_whole(roots_surface->view);
roots_surface->view->wlr_surface = NULL;
wl_list_remove(&roots_surface->surface_commit.link);