Upgrade to thud
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-arago / weston / weston / 0003-Weston-Fix-virtual-keyboard-display-issue-for-QT5-ap.patch
1 From 0d15218ced5bf2e6f3d05758f0f5f21c2a0303f2 Mon Sep 17 00:00:00 2001
2 From: Eric Ruei <e-ruei1@ti.com>
3 Date: Thu, 9 Mar 2017 14:33:08 -0500
4 Subject: [PATCH 3/4] Weston: Fix virtual keyboard display issue for QT5
5  application
6
7 The virtual keyboard does pop up as expected, however, it will never hide
8 even when the application is terminated. This problem is due to the order
9 of the text APIs( text_input_activate and test_input_show_input_panel) are
10 invoked in QT5 and a potential bug of the API implementation. The virtual
11 keyboard works as expected if the test_input_show_input_panel() is invoked
12 prior to the test_input_activate() as most of the weston sample applications
13 do. However, the problem will show up if that order is reversed and the reason
14 why is that the current_panel is not set in this case and hence this panel
15 cannot be hidden.
16
17 It is required to set the current_panel to the text_input when the input_panel
18 becomes visible at the first time.
19
20 Updated for weston 5.0.0 by Scott Murray <scott.murray@konsulko.com>.
21
22 Signed-off-by: Eric Ruei <e-ruei1@ti.com>
23 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
24 ---
25  compositor/text-backend.c | 1 +
26  1 file changed, 1 insertion(+)
27
28 diff --git a/compositor/text-backend.c b/compositor/text-backend.c
29 index 664c36f7..b610dfb1 100644
30 --- a/compositor/text-backend.c
31 +++ b/compositor/text-backend.c
32 @@ -349,6 +349,7 @@ text_input_show_input_panel(struct wl_client *client,
33                                text_input->surface);
34                 wl_signal_emit(&ec->update_input_panel_signal,
35                                &text_input->cursor_rectangle);
36 +               text_input->manager->current_text_input = text_input;
37         }
38  }
39