Skip to content

Add experimental overlay mode for Termux:X11#1023

Draft
twaik wants to merge 1 commit into
masterfrom
experimental-overlay-mode
Draft

Add experimental overlay mode for Termux:X11#1023
twaik wants to merge 1 commit into
masterfrom
experimental-overlay-mode

Conversation

@twaik

@twaik twaik commented May 11, 2026

Copy link
Copy Markdown
Member

Move activity content into TYPE_APPLICATION_OVERLAY window with movable/resizable overlay decorations and icon minimize support.

Mitigates #1022
Fixes #442

@twaik

twaik commented May 11, 2026

Copy link
Copy Markdown
Member Author

@hansm629 @robertkirkman it is kinda buggy and I am aware about the bug with reparenting to main activity after "closing" and that it does not remember its position and size but I kinda need some review.
I am pretty much sure it should mitigate the cpu/gpu throttling problem.

@twaik

twaik commented May 11, 2026

Copy link
Copy Markdown
Member Author

it does not check for overlay permission yet, you should give it manually.

Move activity content into TYPE_APPLICATION_OVERLAY window
with movable/resizable overlay decorations and icon minimize support.

Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com>
@twaik twaik force-pushed the experimental-overlay-mode branch from 10a7802 to 587add4 Compare May 12, 2026 11:29
@twaik

twaik commented May 12, 2026

Copy link
Copy Markdown
Member Author

Few bugs fixed, maybe few more added.
Need more reviews.

@robertkirkman

robertkirkman commented May 12, 2026

Copy link
Copy Markdown
Member

@RalfWerner I am not sure if this would completely be useful to you, but this would allow another kind of what you call "pop view", would you want to try it?

@hansm629

Copy link
Copy Markdown

@twaik
I apologize for the late reply.
I've been a bit busy with work.

Just then, my Galaxy S26 Ultra was updated to the OneUI 9 Beta (Android 17).

I will test it in that environment.

@hansm629

Copy link
Copy Markdown

@twaik
Here is a report on the test results.

We confirmed that when running in overlay mode, all CPU cores are utilized under heavy workloads.

However, there are a few issues.
Screenshot_20260513_212056_Termux

1. Overlay Full-Screen Mode

Is there currently no way to operate the overlay in full-screen mode?

In DeX mode, unfortunately, I was unable to increase the window size beyond the size shown in the screenshot attached above.

2. Overlay Window Display Only When X Server Is Running

Currently, the overlay window is displayed indiscriminately, and it remains even after using the command to close the X Server and the Termux-X11 app.

Is it possible to implement a system where the overlay window is displayed only when the X Server execution command is used, and closes when the command to close the X Server and the Termux-X11 app is entered?

3. Keyboard Initiation in Device On-Screen Mode

When using the device on-screen mode, the software keyboard is not being invoked via the Android back key. Is it possible to improve this aspect?

@robertkirkman

robertkirkman commented May 13, 2026

Copy link
Copy Markdown
Member
  1. Keyboard Initiation in Device On-Screen Mode

When using the device on-screen mode, the software keyboard is not being invoked via the Android back key. Is it possible to improve this aspect?

I neglected to mention this here yet, but there is a global solution to this problem for all failures of Android keyboard to open all in all apps Termux or non-Termux alike.

It is the "global notification" setting of the org.pocketworkstation.pckeyboard app.

https://f-droid.org/en/packages/org.pocketworkstation.pckeyboard/

image

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

Successfully merging this pull request may close these issues.

Overlayed Termux-x11

3 participants