From 9ff84db06d44aed7188cb574a6e877d93a12e8df Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 27 Mar 2018 15:13:35 -0400 Subject: unconstrain stubs --- rootston/xdg_shell_v6.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 0a698e50..60e2b541 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -103,10 +103,34 @@ static void popup_unconstrain_flip(struct roots_xdg_popup_v6 *popup) { wlr_xdg_positioner_v6_get_geometry(&popup->wlr_popup->positioner); } +static void popup_unconstrain_slide(struct roots_xdg_popup_v6 *popup) { + bool x_constrained, y_constrained; + popup_is_constrained(popup, &x_constrained, &y_constrained); + + if (x_constrained) { + // TODO slide_x + } + if (y_constrained) { + // TODO slide_y + } +} + +static void popup_unconstrain_resize(struct roots_xdg_popup_v6 *popup) { + bool x_constrained, y_constrained; + popup_is_constrained(popup, &x_constrained, &y_constrained); + + if (x_constrained) { + // TODO resize_x + } + if (y_constrained) { + // TODO resize_y + } +} + static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) { popup_unconstrain_flip(popup); - // TODO popup_unconstrain_slide(popup); - // TODO popup_unconstrain_resize(popup); + popup_unconstrain_slide(popup); + popup_unconstrain_resize(popup); } static struct roots_xdg_popup_v6 *popup_create(struct roots_view *view, -- cgit v1.2.3