Having discussed this a few times I've reached the following conclusion:
"automatic" is not a MirSurfaceState - if it were a MirSurfaceState,
then it would be correct to return it from get_state() and for it to be
implemented as "looking the same as fullscreen or restored".
By comparison, "restored" can look like "maximized" on the phone or as
windows on desktop and is what get_state() returns.
Instead it is additional metadata about the surface requesting a
specific treatment of the MirSurfaceState.
So, I think the right approach for Mir is to have an additional surface
attribute:
enum MirSurfaceStatePolicy
{
mir_surface_state_policy_default,
mir_surface_state_policy_qt_automatic,
...
};
With corresponding setter and getter functions on the MirSurfaceSpec*
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535397
Title:
[enhancement] Implement support for QWindow::visibility set to
Automatic
To manage notifications about this bug go to:
https://bugs.launchpad.net/avila/+bug/1535397/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs