mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 11:08:14 +02:00
screen-share: Use weston_output_contains_point
Let's not open code this here anymore. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
bb8ef7d271
commit
cb5872f0a6
1 changed files with 2 additions and 5 deletions
|
|
@ -1129,12 +1129,9 @@ weston_output_find(struct weston_compositor *c, int32_t x, int32_t y)
|
|||
{
|
||||
struct weston_output *output;
|
||||
|
||||
wl_list_for_each(output, &c->output_list, link) {
|
||||
if (x >= output->x && y >= output->y &&
|
||||
x < output->x + output->width &&
|
||||
y < output->y + output->height)
|
||||
wl_list_for_each(output, &c->output_list, link)
|
||||
if (weston_output_contains_point(output, x, y))
|
||||
return output;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue