termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

Option to show native Android mouse cursor as well #271

Closed jeroen256 closed 1 year ago

jeroen256 commented 1 year ago

Today I have been working almost whole day using Termux-X11 (not yet in the office). On new Motorola Edge 30 Ultra this went surprisingly well. System feels very snappy and responsive! However I noticed a little lag in the mouse cursor compared to the native Android mouse cursor. Not so big, but enough to me make my eyes feel quite tired and have litte bit of a headache as well.

Think it would help a lot to see both cursors. So the native Android cursor in realtime and the Linux cursor lagging a little bit behind it. I remember to have this experience years ago on Samsung Galaxy S8. May sound silly to see both cursors but I feel this would definitely help to avoid getting a dizzy/drunk feeling after long time usage.

Maybe all it would take is an option in Termux-X11 preferences not to hide the native Android realtime mouse cursor.

twaik commented 1 year ago

It is already in TODO list.

jeroen256 commented 1 year ago

Nice, thanks btw just installed release from yesterday. Amazing new preferences for example to copy paste from Linux to Android and use scaling on mobile screen.

emacs-newer commented 1 year ago

i suggest that give an option to enable/disable it.

nomatter xwayland pointer or android cursor.

it is not necessary for vim and emacs user, but disable them by hand maybe make touch screen operations alse be lost.

so it is better way to give user choice.

thanks

IntinteDAO commented 1 year ago

i suggest that give an option to enable/disable it.

nomatter xwayland pointer or android cursor.

it is not necessary for vim and emacs user, but disable them by hand maybe make touch screen operations alse be lost.

so it is better way to give user choice.

thanks

Ofc. we must remember that Android pointer have disadvantages, for example you can't do 360 rotating using Android cursor, but you can (in theory) using Linux (but not implemented yet in Termux X11).

So you can't play games, and do some stuff like that

twaik commented 1 year ago

It is possible by sending relative mouse coordinates. But it is a bit problematic.

emacs-newer commented 1 year ago

i suggest that give an option to enable/disable it. nomatter xwayland pointer or android cursor. it is not necessary for vim and emacs user, but disable them by hand maybe make touch screen operations alse be lost. so it is better way to give user choice. thanks

Ofc. we must remember that Android pointer have disadvantages, for example you can't do 360 rotating using Android cursor, but you can (in theory) using Linux (but not implemented yet in Termux X11).

So you can't play games, and do some stuff like that

well, maybe you are right,so i hide mouse inside emacs using elisp code.

jeroen256 commented 1 year ago

Thanks! Currently the mouse works excellent. Not exactly sure what was causing the lag. Now I keep the phone cool on aluminium surface, take it out of it's cover, and try not to charge the battery in the same time. Maybe overheating was causing it but biggest difference seems to turn off the screen of the phone. I use video out using USB-C monitor. Sorry to bother you..