Skip to content

[Bug]: mouse click has no effect after switching between android apps via alt-tab #781

Open
@Digit-al

Description

Problem description

When I leave termux-x11 for another android app through keyboard alt-tab combination on mi Redmi Pad Pro tablet, once I go back to Termux-X11, all seems to be working but the mouse clicks have no effect.
When I leave termux-X11 through gestures (rather than alt-tab), all keep working when returning to termux-X11.

What steps will reproduce the bug?

install proot-distro ubuntu + xfce4
start xfce4 from termux using the script below:


#!/data/data/com.termux/files/usr/bin/bash

# Kill open X11 processes
kill -9 $(pgrep -f "termux.x11") 2>/dev/null

# Enable PulseAudio over Network
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1

# Prepare termux-x11 session
#export XDG_RUNTIME_DIR=${TMPDIR}
export DISPLAY=:0
termux-x11 :0 &

# Wait a bit until termux-x11 gets started.
sleep 3

# Launch Termux X11 main activity
am start --user 0 -n com.termux.x11/com.termux.x11.MainActivity
sleep 1

# Login in PRoot Environment. Do some initialization for PulseAudio, /tmp directory
# and run KDE as user droidmaster.
# See also: https://github.com/termux/proot-distro
# Argument -- acts as terminator of proot-distro login options processing.
# All arguments behind it would not be treated as options of PRoot Distro.
proot-distro login ubuntu --shared-tmp -- /bin/bash -c  'export PULSE_SERVER=127.0.0.1 && export DISPLAY=:0 && export GALIUM_DRIVER=virpipe && export BROWSER=firefox && dbus-launch -
-exit-with-session startxfce4'

exit 0

Switch to other android apps through alt-tab

return to termux-X11

Try to open a menu or an app -> no effect when you click

What is the expected behavior?

click should still have effects when returning to the termux-X11 app

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions