From 91a2bc42b0a547130c1a362ad6c1638647aae667 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Fri, 24 Oct 2014 00:22:20 +0200 Subject: [PATCH] Switch layers --- compositor/contents/WindowManagement.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compositor/contents/WindowManagement.js b/compositor/contents/WindowManagement.js index 82c5134f..c887cf58 100644 --- a/compositor/contents/WindowManagement.js +++ b/compositor/contents/WindowManagement.js @@ -120,6 +120,9 @@ function mapApplicationSurface(surface) { window.anchors.left = window.parent.left; window.width = surface.size.width; window.height = surface.size.height; + + // Switch to the applications layer and take focus + compositorRoot.showHome = false; window.child.takeFocus(); // Run map animation @@ -153,6 +156,9 @@ function mapShellSurface(surface, child) { window.anchors.left = window.parent.left; window.width = surface.size.width; window.height = surface.size.height; + + // Switch to the desktop layer and take focus + compositorRoot.showHome = true; window.child.takeFocus(); // Add surface to the model