From: Twaik Yont <9674930+twaik@users.noreply.github.com> Client Wine views are rendering targets for GL/Vulkan client surfaces. They should not become independent Android keyboard focus targets, because input is dispatched by Wine window state, not by the rendering surface itself. Make client Wine views non-focusable and keep keyboard focus on the whole Wine view. Pointer/key input can then be handled by the parent Wine window while the client view remains only a drawable surface. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/wineandroid.drv/WineActivity.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/wineandroid.drv/WineActivity.java b/dlls/wineandroid.drv/WineActivity.java index 1ee99b8a037..1050349f536 100644 --- a/dlls/wineandroid.drv/WineActivity.java +++ b/dlls/wineandroid.drv/WineActivity.java @@ -615,11 +615,6 @@ public WineView create_view( boolean is_client ) if (content_view != null) return content_view; content_view = new WineView( WineActivity.this, win, is_client ); addView( content_view ); - if (!is_client) - { - content_view.setFocusable( true ); - content_view.setFocusableInTouchMode( true ); - } return content_view; } @@ -656,8 +651,8 @@ public WineView( Context c, WineWindow win, boolean client ) setSurfaceTextureListener( this ); setVisibility( VISIBLE ); setOpaque( false ); - setFocusable( true ); - setFocusableInTouchMode( true ); + setFocusable( !client ); + setFocusableInTouchMode( !client ); } public WineWindow get_window() -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10951