From a32f27a2aaaf0afa2ab101ca4ca3015061a2eb37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 8 Mar 2013 14:18:06 +0100 Subject: [PATCH] ctrlAltTab: Fix external DOCK windows We always add external DOCK windows to the ctrl-alt-tab switcher, e.g. separate dock applications or nautilus' desktop windows. Since commit 1f46a0dc26d81, all items in the switcher are expected to set a proxy parameter, but the aforementioned code was not updated accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=695395 --- js/ui/ctrlAltTab.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index efab87b81..f751cb129 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -103,6 +103,11 @@ const CtrlAltTabManager = new Lang.Class({ else icon = textureCache.bind_pixbuf_property(windows[i], 'icon'); items.push({ name: windows[i].title, + proxy: windows[i].get_compositor_private(), + focusCallback: Lang.bind(windows[i], + function(timestamp) { + Main.activateWindow(this, timestamp); + }), iconActor: icon, sortGroup: SortGroup.MIDDLE }); }