aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-27 05:57:43 -0500
committerGitHub <noreply@github.com>2018-09-27 05:57:43 -0500
commit5e9959daaaa86394917144c9928c734fbf533f04 (patch)
tree7503c7ea870f40d68b0ee594d5129cd592ccbff4 /include/wlr/util
parente47b8cd629f9378c74673cb577cc268667a71d1e (diff)
parent1b598f67ca28dce6b61829694ba1a55d05e35678 (diff)
Merge pull request #852 from Laaas/master
Implement pointer-constraints-unstable-v1 protocol
Diffstat (limited to 'include/wlr/util')
-rw-r--r--include/wlr/util/region.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/util/region.h b/include/wlr/util/region.h
index 32387bfb..4aca07e1 100644
--- a/include/wlr/util/region.h
+++ b/include/wlr/util/region.h
@@ -16,6 +16,8 @@
#ifndef WLR_UTIL_REGION_H
#define WLR_UTIL_REGION_H
+
+#include <stdbool.h>
#include <pixman.h>
#include <wayland-server.h>
@@ -48,4 +50,7 @@ void wlr_region_expand(pixman_region32_t *dst, pixman_region32_t *src,
void wlr_region_rotated_bounds(pixman_region32_t *dst, pixman_region32_t *src,
float rotation, int ox, int oy);
+bool wlr_region_confine(pixman_region32_t *region, double x1, double y1, double x2,
+ double y2, double *x2_out, double *y2_out);
+
#endif