Switch layers

This commit is contained in:
Pier Luigi Fiorini 2014-10-24 00:22:20 +02:00
parent e65f73d988
commit 91a2bc42b0

View file

@ -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