mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Rename view_damage_surface to view_damage_part
To better align it with its counterpart view_damage_whole
This commit is contained in:
parent
95b7782c72
commit
1c59946e20
4 changed files with 5 additions and 5 deletions
4
view.c
4
view.c
|
|
@ -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
2
view.h
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue