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

[AIR 50.2][Linux] Application minimization cause that it will be restored again #2535

Closed
itlancer opened this issue Mar 21, 2023 · 4 comments
Labels

Comments

@itlancer
Copy link

Problem Description

Application minimization cause that it will be restored again for Linux using latest AIR 50.2.x.

Tested with latest AIR 50.2.2.1 and 50.2.1.1 with multiple different Linux devices (mostly Ubuntu 22.04) with different applications.
Same problem in all cases.
There is no such issue with AIR 50.1.1.2 and below.

Related issues:
#2497
#2495
#2492
#2486
#2241

Steps to Reproduce

Launch any AIR application (even "empty") with Linux and try to minimize it via window minimization button.

Actual Result:
Application window will be restored again.
Also application window will be "always on top" of other applications.
With some OS editions (like Ubuntu 20.04) bug happens only once. After second attempt to minimize application window all works fine. With other OS editions it happens all the time.

Expected Result:
Application window will be minimized without false restoring again. Application window shouldn't be "always on top" if it doesn't set up specifically.

Known Workarounds

not found
Use AIR 50.1.1.2 or below.

@mesaglam
Copy link

mesaglam commented Apr 8, 2023

I hope you'll fix soon...

stage.displayState = StageDisplayState.NORMAL not working after going
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE for linux. Tested on ubuntu and debian with latest SDK 50.2.2.3...

@itlancer
Copy link
Author

itlancer commented Apr 8, 2023

@mesaglam
Your issue also could be related to:
#2497
#2492

@ajwfrost
For original "fake window restoring on minimization" issue. With latest 50.2.2.3 behavior come little better but issue still exists. Especially with Ubuntu 22.04 (VM and real devices).
Steps to reproduce it 100% with Ubuntu 22.04:

  1. Launch any AIR application (even "empty").
  2. Try to minimize application window via standard window minimization button.
    Here application window could be restored again by no reason! If not, go to next steps.
  3. Restore application window manually from Linux Dock menu by mouse left button click (as usual). Application window will be restored.
  4. Maximize application window via standard window maximization button.
  5. Try to minimize application window via standard window minimization button.
    Here application window will be restored again by no reason!

Sometimes fake restoring happens with step 2, sometimes with step 5. But only once per application launch. At least for Ubuntu with our tests. With some others Linux editions in such cases application window not just restored, but maximized and go to fullscreen without any reason.
Workaround: Catch window minimization event and then wait for maximization/fullscreen event for a short time. If such happens - minimize window programmatically again.

@itlancer
Copy link
Author

itlancer commented May 3, 2023

Issue still exists with latest AIR 50.2.2.5.

@itlancer
Copy link
Author

Fixed with latest AIR 50.2.3.2.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants