Rename view_damage_surface to view_damage_part

To better align it with its counterpart view_damage_whole
This commit is contained in:
Jente Hidskes 2019-12-26 12:03:38 +01:00
parent 95b7782c72
commit 1c59946e20
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
4 changed files with 5 additions and 5 deletions

4
view.c
View file

@ -28,7 +28,7 @@ static void
view_child_handle_commit(struct wl_listener *listener, void *data)
{
struct cg_view_child *child = wl_container_of(listener, child, commit);
view_damage_surface(child->view);
view_damage_part(child->view);
}
static void subsurface_create(struct cg_view *view, struct wlr_subsurface *wlr_subsurface);
@ -136,7 +136,7 @@ view_is_transient_for(struct cg_view *child, struct cg_view *parent) {
}
void
view_damage_surface(struct cg_view *view)
view_damage_part(struct cg_view *view)
{
struct cg_output *output;
wl_list_for_each(output, &view->server->outputs, link) {

2
view.h
View file

@ -71,7 +71,7 @@ struct cg_subsurface {
char *view_get_title(struct cg_view *view);
bool view_is_primary(struct cg_view *view);
bool view_is_transient_for(struct cg_view *child, struct cg_view *parent);
void view_damage_surface(struct cg_view *view);
void view_damage_part(struct cg_view *view);
void view_damage_whole(struct cg_view *view);
void view_activate(struct cg_view *view, bool activate);
void view_position(struct cg_view *view);

View file

@ -242,7 +242,7 @@ handle_xdg_shell_surface_commit(struct wl_listener *listener, void *data)
{
struct cg_xdg_shell_view *xdg_shell_view = wl_container_of(listener, xdg_shell_view, commit);
struct cg_view *view = &xdg_shell_view->view;
view_damage_surface(view);
view_damage_part(view);
}
static void

View file

@ -120,7 +120,7 @@ handle_xwayland_surface_commit(struct wl_listener *listener, void *data)
{
struct cg_xwayland_view *xwayland_view = wl_container_of(listener, xwayland_view, commit);
struct cg_view *view = &xwayland_view->view;
view_damage_surface(view);
view_damage_part(view);
}
static void