From 95442dac8d5c518fe2dc1f1191ecbf7beaac78ac Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 14 Nov 2015 11:30:23 -0500 Subject: [PATCH] We wlc_point now cc @Cloudef --- sway/container.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sway/container.c b/sway/container.c index f3e2b3ae4..bbe2e7b04 100644 --- a/sway/container.c +++ b/sway/container.c @@ -510,7 +510,7 @@ swayc_t *swayc_active_workspace_for(swayc_t *cont) { } static bool pointer_test(swayc_t *view, void *_origin) { - const struct wlc_origin *origin = _origin; + const struct wlc_point *origin = _origin; // Determine the output that the view is under swayc_t *parent = swayc_parent_by_type(view, C_OUTPUT); if (origin->x >= view->x && origin->y >= view->y @@ -531,8 +531,8 @@ swayc_t *container_under_pointer(void) { if (lookup->children == 0) { return NULL; } - struct wlc_origin origin; - wlc_pointer_get_origin(&origin); + struct wlc_point origin; + wlc_pointer_get_position(&origin); while (lookup->type != C_VIEW) { int i; int len;