mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 09:58:14 +02: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
(cherry picked from commit c77a5d386a)
This commit is contained in:
parent
fe15613bb9
commit
664bc247b0
1 changed files with 1 additions and 0 deletions
|
|
@ -1918,6 +1918,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue