aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-06-22 14:59:58 +0300
committerKirill Primak <vyivel@eclair.cafe>2023-11-24 15:09:31 +0300
commit7661ab2bf16d12932c2fceab0680b72c830cdaa4 (patch)
tree869c51857ef3cd57eaceb4e62e183bb21ceb5fcd /include
parent26158d0718e239b4d2423a3dc22365cc4c749ffd (diff)
compositor: deprecate wlr/types/wlr_region.h
The only function in that header is now also declared in wlr/types/wlr_compositor.h.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_compositor.h5
-rw-r--r--include/wlr/types/wlr_region.h14
2 files changed, 7 insertions, 12 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index 53e663fd..322e9ed2 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -415,6 +415,11 @@ void wlr_surface_set_preferred_buffer_transform(struct wlr_surface *surface,
enum wl_output_transform transform);
/**
+ * Get a Pixman region from a wl_region resource.
+ */
+const pixman_region32_t *wlr_region_from_resource(struct wl_resource *resource);
+
+/**
* Create the wl_compositor global, which can be used by clients to create
* surfaces and regions.
*
diff --git a/include/wlr/types/wlr_region.h b/include/wlr/types/wlr_region.h
index 62ac85c0..483ac968 100644
--- a/include/wlr/types/wlr_region.h
+++ b/include/wlr/types/wlr_region.h
@@ -1,16 +1,6 @@
/*
- * This is a stable interface of wlroots. Future changes will be limited to:
- *
- * - New functions
- * - New struct members
- * - New enum members
- *
- * Note that wlroots does not make an ABI compatibility promise - in the future,
- * the layout and size of structs used by wlroots may change, requiring code
- * depending on this header to be recompiled (but not edited).
- *
- * Breaking changes are announced in the release notes and follow a 1-year
- * deprecation schedule.
+ * This is a deprecated interface of wlroots. It will be removed in a future
+ * version. wlr/types/wlr_compositor.h should be used instead.
*/
#ifndef WLR_TYPES_WLR_REGION_H