microsoft / WSA

Developer-related issues and feature requests for Windows Subsystem for Android
MIT License
1.46k stars 798 forks source link

WSA 2308, app maximized window and full-screen display issues #425

Open bzkmsjy opened 10 months ago

bzkmsjy commented 10 months ago

Steps to reproduce

The official website of the problematic App: http://dddm.top/

This App was developed for mobile phones and is not specifically adapted to tablets. However, it supports stretched display in horizontal screen state and runs well on WSA 2307 and earlier, and WSA can remember the maximized horizontal screen window state. You can also use F11 full screen to display normally in full screen. However, after WSA was updated to 2308, the App had problems. First, the window size was not remembered. Every time it was opened, it was a small vertical window. After manually maximizing it, white horizontal bars appeared on the upper and lower sides of the App interface. , after using F11 full screen, the white horizontal bars will be larger. 屏幕截图(132)

Reproduction steps:

  1. Download the App from http://dddm.top/ and install it to WSA
  2. Start the App, allow running permission, and enter the main interface
  3. Maximize the App window, use F11 to display it in full screen, and observe whether there are white horizontal bars.
  4. Close the App, reopen the App, and observe whether the maximized window state is remembered. ​

✔️ Expected Behavior

When the App window is maximized or full-screen, it displays normally without white horizontal bars. After exiting and opening it again, the maximized window state can be remembered.

❌ Actual Behavior

When the App window is maximized or full-screen, white horizontal bars appear on the upper and lower sides of the window. After exiting and opening it again, the maximized state of the window cannot be remembered.

Other Software

No response

Please specify the version of Windows Subsystem for Android

2308.40000.1.0

Mitia99 commented 10 months ago

I also can reproduce a kinda similar issue

Screenshot 2023-09-10 121329

Can be fixed after a minimize then maximize action

https://github.com/microsoft/WSA/assets/56766778/0f0e4054-bd3c-444e-8597-c0d42572f5d9

bzkmsjy commented 10 months ago

I guess it may be a DPi scaling issue (or stretching?). For the App mentioned in the question, when the window is maximized, the fonts and pictures in the App are greatly enlarged, which may cause it to be unable to fill the screen normally. This is not the case on WSA 2307 and earlier. When maximized or full screen, the font and image sizes in the App remain unchanged.

xhan65 commented 9 months ago

Thank you for the feedback! Hi @Mitia99 , do you mind sharing the name and link to app/source of your repro app?

Mitia99 commented 9 months ago

Thank you for the feedback! Hi @Mitia99 , do you mind sharing the name and link to app/source of your repro app?

Hi, I can't reproduce the issue with the previous app anymore but found a distortion issue at YouCut startup.

Fixed after draging the window youcut

Display:

AceDroidX commented 9 months ago

Same issue in game BlueArchive

Normal behavior in 2307.40000.6 Image distortion in 2308.40000.1 230914-1

Enlarging the window horizontally solves the problem 230914-2

Display size: 2560x1600(16:10) DPI scale: 200%

plasmatank commented 9 months ago

Encountered same issue in game Blue Archive Global Version. 2307.40000.3 屏幕截图 2023-09-10 071747 2308.40000.2 屏幕截图 2023-09-15 231000 Graphs in game were strangely stretched, at the same time I can't resize the window freely just like what I could do in 2307, only to notice white edges and a refresh button show up.

AceDroidX commented 9 months ago

Same issue in game BlueArchive

Normal behavior in 2307.40000.6 Image distortion in 2308.40000.1

Comparing other devices I found that 2308.40000.1 should be normal but the old version is wrong because I've been using it on WSA for a long time and it's my preconceived notion.