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

[FR] Add ability to have hook script when toggling android on screen keyboard #51

Open
racheandre opened this issue Dec 6, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@racheandre
Copy link

First of all, I really like your app. Termux is good but it does not support using in different profile. This app fits my requirement and it even has minimal wayland compositor for running x11 app.

My problem is when I toggle the android keyboard on the app with a x11 desktop, the desktop screen will be covered by the keyboard, so it is natural to just limit the resolution to a smaller size so that the keyboard can only cover the empty space on the x11 desktop. If it is possible to run a script when toggling the on screen keyboard, it can change resolution according to the status of the on screen keyboard.

@green-green-avk
Copy link
Owner

green-green-avk commented Dec 7, 2023

The composer does already send proper resize events to applications...

The possible problem is with the Android IME size guessing (that is pain)...

My test on Samsung Note 8 shows that some tenths of pixels could be eaten in the landscape screen orientation.

What is your device, by the way? As I see, the IME size guessing does not work at all for you?

@green-green-avk green-green-avk self-assigned this Dec 7, 2023
@green-green-avk green-green-avk added the bug Something isn't working label Dec 7, 2023
@racheandre
Copy link
Author

I am using a Pixel 7a, and only tried portrait orientation. Not sure if it is related, but I am using i3. It does not have the correct resolution when running, so I run a xrandr on boot. Maybe I should try IceWM?

@green-green-avk
Copy link
Owner

Let's give IceWM a try. Maybe i3 has hard times with screen resize events support...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants