diff options
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c index f3e2b3ae..bbe2e7b0 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -510,7 +510,7 @@ swayc_t *swayc_active_workspace_for(swayc_t *cont) { | |||
510 | } | 510 | } |
511 | 511 | ||
512 | static bool pointer_test(swayc_t *view, void *_origin) { | 512 | static bool pointer_test(swayc_t *view, void *_origin) { |
513 | const struct wlc_origin *origin = _origin; | 513 | const struct wlc_point *origin = _origin; |
514 | // Determine the output that the view is under | 514 | // Determine the output that the view is under |
515 | swayc_t *parent = swayc_parent_by_type(view, C_OUTPUT); | 515 | swayc_t *parent = swayc_parent_by_type(view, C_OUTPUT); |
516 | if (origin->x >= view->x && origin->y >= view->y | 516 | if (origin->x >= view->x && origin->y >= view->y |
@@ -531,8 +531,8 @@ swayc_t *container_under_pointer(void) { | |||
531 | if (lookup->children == 0) { | 531 | if (lookup->children == 0) { |
532 | return NULL; | 532 | return NULL; |
533 | } | 533 | } |
534 | struct wlc_origin origin; | 534 | struct wlc_point origin; |
535 | wlc_pointer_get_origin(&origin); | 535 | wlc_pointer_get_position(&origin); |
536 | while (lookup->type != C_VIEW) { | 536 | while (lookup->type != C_VIEW) { |
537 | int i; | 537 | int i; |
538 | int len; | 538 | int len; |