202333a5e03908396c4bb9c22dceb52f36374bc3
[AGL/meta-agl.git] / meta-agl-core / recipes-graphics / wayland / weston / 0001-clients-Handle-missing-pointer_surface-is-there-s-no.patch
1 From 6a847464de9e773f6d1490916d0df48a0f90eeba Mon Sep 17 00:00:00 2001
2 From: Marius Vlad <marius.vlad@collabora.com>
3 Date: Thu, 5 Oct 2023 16:27:34 +0300
4 Subject: [PATCH] clients: Handle missing pointer_surface is there's no pointer
5  event
6
7 Upstream-Status: Pending
8
9 Bug-AGL: SPEC-4916
10 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
11 ---
12  clients/window.c | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/clients/window.c b/clients/window.c
16 index 30f6410..882e9d5 100644
17 --- a/clients/window.c
18 +++ b/clients/window.c
19 @@ -3818,7 +3818,7 @@ pointer_surface_frame_callback(void *data, struct wl_callback *callback,
20                 force_frame = false;
21         }
22  
23 -       if (!input->pointer)
24 +       if (!input->pointer || !input->pointer_surface)
25                 return;
26  
27         if (input_set_pointer_special(input))
28 -- 
29 2.35.1
30