window: Add API for manually set confine region
We can use this to test more complex confine regions.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/clients/window.h b/clients/window.h
index cd5611a..97719a7 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -393,6 +393,17 @@
float x, float y);
int
+window_confine_pointer_to_rectangles(struct window *window,
+ struct input *input,
+ struct rectangle *rectangles,
+ int num_rectangles);
+
+void
+window_update_confine_rectangles(struct window *window,
+ struct rectangle *rectangles,
+ int num_rectangles);
+
+int
window_confine_pointer_to_widget(struct window *window,
struct widget *widget,
struct input *input);