mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 04:58:16 +02:00
Merge branch 'fix-transient-crash' into 'main'
desktop-shell: fix the crash while clicking TRANSIENT_INACTIVE window See merge request wayland/weston!160
This commit is contained in:
commit
36229676e4
1 changed files with 8 additions and 3 deletions
|
|
@ -2325,11 +2325,16 @@ desktop_surface_move(struct weston_desktop_surface *desktop_surface,
|
|||
struct weston_touch *touch = weston_seat_get_touch(seat);
|
||||
struct shell_surface *shsurf =
|
||||
weston_desktop_surface_get_user_data(desktop_surface);
|
||||
struct weston_surface *surface =
|
||||
weston_desktop_surface_get_surface(shsurf->desktop_surface);
|
||||
struct wl_resource *resource = surface->resource;
|
||||
struct weston_surface *surface;
|
||||
struct wl_resource *resource;
|
||||
struct weston_surface *focus;
|
||||
|
||||
if (!shsurf)
|
||||
return;
|
||||
|
||||
surface = weston_desktop_surface_get_surface(shsurf->desktop_surface);
|
||||
resource = surface->resource;
|
||||
|
||||
if (pointer &&
|
||||
pointer->focus &&
|
||||
pointer->button_count > 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue