Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Digit-al opened this issue Jan 9, 2025 · 3 comments

Comments

@Digit-al
Copy link

Digit-al commented Jan 9, 2025

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

@twaik
Copy link
Member

twaik commented Jan 12, 2025

Did you try pressing "alt" one more time? Probably it is stuck in pressed state after window change.

@Digit-al
Copy link
Author

Hi twaik,
Thanks for taking time to answer.
You are absolutely right, if I press alt again, everything works again as expected!
Thanks again
David

@nathaneltitane
Copy link

came to add a bug - found this! amazing thanks @twaik - is it an android 'feature'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants