mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 03:30:19 +01:00
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
This commit is contained in:
parent
eabc19bc3b
commit
c77a5d386a
1 changed files with 1 additions and 0 deletions
|
|
@ -1922,6 +1922,7 @@ weston_pointer_set_focus(struct weston_pointer *pointer,
|
||||||
if (view) {
|
if (view) {
|
||||||
struct weston_coord_surface surf_pos;
|
struct weston_coord_surface surf_pos;
|
||||||
|
|
||||||
|
weston_view_update_transform(view);
|
||||||
surf_pos = weston_coord_global_to_surface(view, pointer->pos);
|
surf_pos = weston_coord_global_to_surface(view, pointer->pos);
|
||||||
sx = wl_fixed_from_double(surf_pos.c.x);
|
sx = wl_fixed_from_double(surf_pos.c.x);
|
||||||
sy = wl_fixed_from_double(surf_pos.c.y);
|
sy = wl_fixed_from_double(surf_pos.c.y);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue