mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
js: Get monitor manager from backend
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2557>
This commit is contained in:
parent
8d68bdaaa1
commit
c1d66af4b9
9 changed files with 14 additions and 13 deletions
|
|
@ -55,14 +55,14 @@ class SwitchMonitorPopup extends SwitcherPopup.SwitcherPopup {
|
|||
}
|
||||
|
||||
show(backward, binding, mask) {
|
||||
if (!Meta.MonitorManager.get().can_switch_config())
|
||||
if (!global.backend.get_monitor_manager().can_switch_config())
|
||||
return false;
|
||||
|
||||
return super.show(backward, binding, mask);
|
||||
}
|
||||
|
||||
_initialSelection() {
|
||||
let currentConfig = Meta.MonitorManager.get().get_switch_config();
|
||||
let currentConfig = global.backend.get_monitor_manager().get_switch_config();
|
||||
let selectConfig = (currentConfig + 1) % this._items.length;
|
||||
this._select(selectConfig);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue