asteroid
asteroid copied to clipboard
Deprecate the use of the Qt extended surface
Currently we revert a patch in QtWayland so that we can use the extended surface again. The extended surface is used so that an application can tell the compositor not to kill the app when the user performs the swipe back action.
The extended surface exposes a settable windowFlag which is uses by the compositor. A potential workaround to this issue might be to use DBus instead.
It should make the API more flexible for future use for things like ambient mode apps (where an app can tell the compositor not to kill the app but let it run in ambient mode).
Sources:
- https://github.com/AsteroidOS/qml-asteroid/blob/1ba0f35f797ecb537be337b5530b5128aae5d60c/src/controls/qml/LayerStack.qml#L81
- https://github.com/AsteroidOS/qml-asteroid/blob/21a896931496190634c85a01dab01aaf9095d7eb/src/controls/src/application_p.cpp#L43
- https://github.com/AsteroidOS/asteroid-launcher/blob/3a1935426ae285a516dc82ab760da32e443199fb/qml/compositor/compositor.qml#L178
- https://github.com/AsteroidOS/asteroid-launcher/blob/3a1935426ae285a516dc82ab760da32e443199fb/qml/compositor/compositor.qml#L87
- https://github.com/AsteroidOS/meta-asteroid/blob/d2b91f92c969b2201d896ef1d809efc9510ea82c/recipes-qt/qt5/qtwayland/0002-Revert-most-of-Remove-QWaylandExtendedSurface-from-t.patch
- https://github.com/AsteroidOS/meta-asteroid/blob/d2b91f92c969b2201d896ef1d809efc9510ea82c/recipes-qt/qt5/qtwayland/0003-xdg-shell-Add-support-for-extended-surfaces.patch
I idly wonder if there could also be a cleaner solution when we switch to QtApplicationManager instead of lipstick