aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-18 16:40:54 +0200
committerSimon Ser <contact@emersion.fr>2021-09-06 17:37:08 +0200
commit56b6b80b9a73d50c1a77afad2df29de8de7bd13b (patch)
tree6c180cdba094efab580581dffb1c2e0ff1633c4c /include/wlr
parent242c23743f6c7855ab32591894f08e9005599b0c (diff)
subsurface: rename wlr_subsurface_state to wlr_subsurface_parent_state
Add a comment to explain the difference.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index a9859d7b..69188cbb 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -163,7 +163,12 @@ struct wlr_surface {
} previous;
};
-struct wlr_subsurface_state {
+/**
+ * The sub-surface state describing the sub-surface's relationship with its
+ * parent. Contrary to other states, this one is not applied on surface commit.
+ * Instead, it's applied on parent surface commit.
+ */
+struct wlr_subsurface_parent_state {
int32_t x, y;
};
@@ -172,7 +177,7 @@ struct wlr_subsurface {
struct wlr_surface *surface;
struct wlr_surface *parent;
- struct wlr_subsurface_state current, pending;
+ struct wlr_subsurface_parent_state current, pending;
uint32_t cached_seq;
bool has_cache;