mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +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.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
|
||||
|
|
|
|||
Loading…
Reference in a new issue