mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-29 07:44:45 +00:00
Switch layers
This commit is contained in:
parent
e65f73d988
commit
91a2bc42b0
1 changed files with 6 additions and 0 deletions
|
|
@ -120,6 +120,9 @@ function mapApplicationSurface(surface) {
|
||||||
window.anchors.left = window.parent.left;
|
window.anchors.left = window.parent.left;
|
||||||
window.width = surface.size.width;
|
window.width = surface.size.width;
|
||||||
window.height = surface.size.height;
|
window.height = surface.size.height;
|
||||||
|
|
||||||
|
// Switch to the applications layer and take focus
|
||||||
|
compositorRoot.showHome = false;
|
||||||
window.child.takeFocus();
|
window.child.takeFocus();
|
||||||
|
|
||||||
// Run map animation
|
// Run map animation
|
||||||
|
|
@ -153,6 +156,9 @@ function mapShellSurface(surface, child) {
|
||||||
window.anchors.left = window.parent.left;
|
window.anchors.left = window.parent.left;
|
||||||
window.width = surface.size.width;
|
window.width = surface.size.width;
|
||||||
window.height = surface.size.height;
|
window.height = surface.size.height;
|
||||||
|
|
||||||
|
// Switch to the desktop layer and take focus
|
||||||
|
compositorRoot.showHome = true;
|
||||||
window.child.takeFocus();
|
window.child.takeFocus();
|
||||||
|
|
||||||
// Add surface to the model
|
// Add surface to the model
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue