From c3cdbd0dacfff16d38b8e96f77a27722c388bb32 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 28 Dec 2016 12:14:32 +0100 Subject: [PATCH] windowManager: Handle MetaDisplay::show-osd signal Propagate as-is to the OsdWindowManager. https://bugzilla.gnome.org/show_bug.cgi?id=771098 --- js/ui/windowManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 7fe4ac3a2..624eb736c 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -920,6 +920,10 @@ const WindowManager = new Lang.Class({ global.display.connect('show-resize-popup', Lang.bind(this, this._showResizePopup)); global.display.connect('show-pad-osd', Lang.bind(this, this._showPadOsd)); + global.display.connect('show-osd', Lang.bind(this, function (display, monitorIndex, iconName, label) { + let icon = Gio.Icon.new_for_string(iconName); + Main.osdWindowManager.show(monitorIndex, icon, label, null); + })); Main.overview.connect('showing', Lang.bind(this, function() { for (let i = 0; i < this._dimmedWindows.length; i++)