From c77a5d386a7c0729649c5d611a1855d577f28faa Mon Sep 17 00:00:00 2001 From: kang-sooyeon Date: Thu, 16 Jan 2025 14:57:32 +0900 Subject: [PATCH] libweston/input.c: Fix weston crash with the mouse event Fix weston crash when user click the mouse continuosly while the video is playing. Call weston_view_update_transform before calling weston_coord_global_to_surface to update view->transform.dirty to 0. Fixes #985 Tested-by: Sooyeon Kang sooyeon8979@gmail.com Signed-off-by: Sooyeon Kang sooyeon8979@gmail.com --- libweston/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/input.c b/libweston/input.c index 19069762e..79df12fba 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -1922,6 +1922,7 @@ weston_pointer_set_focus(struct weston_pointer *pointer, if (view) { struct weston_coord_surface surf_pos; + weston_view_update_transform(view); surf_pos = weston_coord_global_to_surface(view, pointer->pos); sx = wl_fixed_from_double(surf_pos.c.x); sy = wl_fixed_from_double(surf_pos.c.y);