You can already do this by querying Unity 8 GSettings (qml snippet
below):
import GSettings 1.0
GSettings {
id: settings
schema.id: "com.canonical.Unity8"
}
...
if (unity8Settings.usageMode === "Windowed") {
// running in windowed mode
} else { // == "Staged"
// running in staged mode
}
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1610929
Title:
Implement Screen::GetShellMode()
Status in Mir:
New
Status in Oxide:
Triaged
Status in unity8 package in Ubuntu:
New
Bug description:
This is currently just a stub that returns NonWindowed on mobile
devices and Windowed everywhere else. It needs to be more intelligent
than that (eg, Windowed on a tablet device) and needs to be dynamic,
but I don't think there's a way for us to do that yet.
Basically, we need to know whether the shell is in windowed or staged
mode. The display's form factor isn't particularly relevant.
This is needed to complete bug 1545088 and others.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1610929/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp