Add an OSD monitor labeler exposed on DBus
This DBus API is intended to be used by gnome-control-center's displays panel to show monitor labels. Each output (i.e. hardware monitor) identified by its org.gnome.Mutter.DisplayConfig API ID has at most one label. On mirrored setups, all the labels for outputs corresponding to the same logical monitor (i.e. showing the same contents in the same mode) are shown together. At most, only one DBus client at a time is allowed to show labels. https://bugzilla.gnome.org/show_bug.cgi?id=743744
This commit is contained in:
@ -21,6 +21,7 @@ const Keyboard = imports.ui.keyboard;
|
||||
const MessageTray = imports.ui.messageTray;
|
||||
const ModalDialog = imports.ui.modalDialog;
|
||||
const OsdWindow = imports.ui.osdWindow;
|
||||
const OsdMonitorLabeler = imports.ui.osdMonitorLabeler;
|
||||
const Overview = imports.ui.overview;
|
||||
const Panel = imports.ui.panel;
|
||||
const Params = imports.misc.params;
|
||||
@ -57,6 +58,7 @@ let notificationDaemon = null;
|
||||
let windowAttentionHandler = null;
|
||||
let ctrlAltTabManager = null;
|
||||
let osdWindowManager = null;
|
||||
let osdMonitorLabeler = null;
|
||||
let sessionMode = null;
|
||||
let shellDBusService = null;
|
||||
let shellMountOpDBusService = null;
|
||||
@ -150,6 +152,7 @@ function _initializeUI() {
|
||||
xdndHandler = new XdndHandler.XdndHandler();
|
||||
ctrlAltTabManager = new CtrlAltTab.CtrlAltTabManager();
|
||||
osdWindowManager = new OsdWindow.OsdWindowManager();
|
||||
osdMonitorLabeler = new OsdMonitorLabeler.OsdMonitorLabeler();
|
||||
overview = new Overview.Overview();
|
||||
wm = new WindowManager.WindowManager();
|
||||
magnifier = new Magnifier.Magnifier();
|
||||
|
Reference in New Issue
Block a user