shellDBus: Add ScreenTransition()

Settings will use this when switching between light and dark styles.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2070>
This commit is contained in:
Alexander Mikhaylenko
2021-09-23 12:45:14 +05:00
parent 03e307f328
commit de485c8f47
4 changed files with 70 additions and 0 deletions

View File

@ -251,6 +251,19 @@ var GnomeShell = class {
invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
}
ScreenTransitionAsync(params, invocation) {
try {
this._senderChecker.checkInvocation(invocation);
} catch (e) {
invocation.return_gerror(e);
return;
}
Main.layoutManager.screenTransition.run();
invocation.return_value(null);
}
_emitAcceleratorActivated(action, device, timestamp) {
let destination = this._grabbedAccelerators.get(action);
if (!destination)