mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
WindowManager: Use context for MonitorManager
This commit is contained in:
parent
b89c9e034c
commit
f6180279ee
@ -2134,7 +2134,12 @@ namespace Gala {
|
||||
}
|
||||
|
||||
public override void confirm_display_change () {
|
||||
#if HAS_MUTTER44
|
||||
unowned var monitor_manager = get_display ().get_context ().get_backend ().get_monitor_manager ();
|
||||
var timeout = monitor_manager.get_display_configuration_timeout ();
|
||||
#else
|
||||
var timeout = Meta.MonitorManager.get_display_configuration_timeout ();
|
||||
#endif
|
||||
var summary = ngettext (
|
||||
"Changes will automatically revert after %i second.",
|
||||
"Changes will automatically revert after %i seconds.",
|
||||
|
Loading…
Reference in New Issue
Block a user