[Linux] NativeWindow::restore()
doesn't work after NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE
event
#2497
Labels
NativeWindow::restore()
doesn't work after NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE
event
#2497
Problem Description
NativeWindow::restore()
doesn't work afterNativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE
event for Linux.It happens if I want to wait when
NativeWindow::maximize()
to be applied and then change window state again.Tested with multiple AIR versions, even with latest AIR 50.2.1.1 with multiple different Linux Ubuntu 22.04.1 LTS devices with different applications.
Same problem in all cases.
There is no such issue with Windows/macOS devices.
Related issues (not the same):
#2495
#2493
#2492
#2486
Steps to Reproduce
Launch application with code below with Linux Ubuntu 22.04.1 LTS device.
Application window should be maximized and then restored to normal after launch.
Application example with sources attached.
linux_nativewindow_restore_normal_event_bug.zip
Actual Result:
Application window maximized (not restored).
In traces you will see:
Seems like window maximized again immediately.
Expected Result:
Application window restored to normal state.
In traces you will see:
Known Workarounds
Handle such behaviour by application logic somehow. May be dispatch extra event by your own.
The text was updated successfully, but these errors were encountered: