aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-26 23:48:32 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-26 23:48:32 -0400
commitbbd0e23fa79ec39c872c09e49d09a9ccbda68bcd (patch)
tree2ab89e79abc63324432d9de5bff7828de0a52d84 /include
parent4da18f7fc361bcde631249268320c9f1e4ef7c7c (diff)
xdg-positioner constraint detection
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_xdg_shell_v6.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_xdg_shell_v6.h b/include/wlr/types/wlr_xdg_shell_v6.h
index 47d78664..e192d36a 100644
--- a/include/wlr/types/wlr_xdg_shell_v6.h
+++ b/include/wlr/types/wlr_xdg_shell_v6.h
@@ -114,15 +114,6 @@ struct wlr_xdg_popup_v6 {
struct wlr_box geometry;
struct wlr_xdg_positioner_v6_attributes positioner;
- struct wlr_box anchor_rect;
-
- struct {
- int32_t width, height;
- } size;
-
- struct {
- int32_t x, y;
- } offset;
struct wl_list grab_link; // wlr_xdg_popup_grab_v6::popups
};
@@ -305,4 +296,13 @@ struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6_popup_at(
struct wlr_xdg_surface_v6 *surface, double sx, double sy,
double *popup_sx, double *popup_sy);
+/**
+ * Get the anchor point for this popup in the root parent's coordinate system.
+ */
+void wlr_xdg_popup_v6_get_anchor_point(struct wlr_xdg_popup_v6 *popup,
+ int *root_sx, int *root_sy);
+
+void wlr_positioner_v6_invert(
+ struct wlr_xdg_positioner_v6_attributes *positioner);
+
#endif