termux / termux-x11

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

[Bug]: fullscreen and hide cutout don't work as intended before restarting #623

Closed mio-19 closed 4 months ago

mio-19 commented 5 months ago

Problem description

I will upload screenshots to show the problem. I am running termux:x11 on Samsung OneUI 6.1, Android 14

commit https://github.com/termux/termux-x11/commit/5489f7c8726855cd55729660c2867139aa2a5a74

What steps will reproduce the bug?

Immersive only: Screenshot_20240507_112114_TermuxX11 Screenshot_20240507_112138_TermuxX11 Immersive and hide cutout: Screenshot_20240507_112226_TermuxX11 Screenshot_20240507_112221_TermuxX11 No immersive. no hide cutout (working fine) Screenshot_20240507_112349_TermuxX11

My settings Screenshot_20240507_112517_TermuxX11

What is the expected behavior?

No response

mio-19 commented 5 months ago

hide cutout only Screenshot_20240507_112912_TermuxX11 Screenshot_20240507_112905_TermuxX11 No immersive. no hide cutout. landscape (working fine)

Screenshot_20240507_113022_TermuxX11

mio-19 commented 5 months ago

I freshly installed termux:x11 on official lineageos and got similar results.

twaik commented 5 months ago

Android does not let applications hide cutout if they do not request fullscreen. There is no way to override this system behaviour.

mio-19 commented 5 months ago

Android does not let applications hide cutout if they do not request fullscreen. There is no way to override this system behaviour.

The issue is more than this. I got even wider "cutout" when fullscreen is enabled and I got normal cutout when fullscreen and hide cutout are enabled.

twaik commented 5 months ago

Unfortunately I can not reproduce it. I think it is some firmware-related bug.

mio-19 commented 5 months ago

Unfortunately I can not reproduce it. I think it is some firmware-related bug.

I don't think OnePlus 6 with official lineageos and Samsung S23 Ultra with OneUI6 could have a same firmware-related bug.

What is your hardware and software?

mio-19 commented 5 months ago

I don't see evidences showing that this issue is firmware-related. I want to re-open the issue as I think it is a relevant bug. Alternatively I might open more appropriate issue with test results on multiple devices.

ewt45 commented 4 months ago

with the latest android studio, there is a feature of using device streaming to debug remote device for free. https://developer.android.com/studio/run/android-device-streaming there are samsung android14 (one ui 6.0 though) available. i tried it and it seems to have similar bugs?

(udpate: after change settings, restart termux-x11 app will make the xfce4 desktop size display correctly. i'm not sure if this is the expected behavior (have to restart), but at least now it works corretly.)

mio-19 commented 4 months ago

@ewt45 Thanks! I haven't correctly restarted termux:x11. It works correctly after I force killed termux:x11 in android system settings

twaik commented 4 months ago

So it seems like this issue may be closed, right?

mio-19 commented 4 months ago

So it seems like this issue may be closed, right?

No. This issue is now about the problem before restarting.

A solution might be displaying a toast to tell the user to restart the app so the user know what to do.