mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
resize the active window when showing the keyboard
This commit is contained in:
parent
2b7a1ac810
commit
d941d3ffa3
1 changed files with 6 additions and 1 deletions
|
|
@ -170,7 +170,9 @@ function mapShellSurface(surface, child) {
|
|||
} else {
|
||||
compositorRoot.state = "homeScreen";
|
||||
}
|
||||
if (surface.className != "maliit-server.desktop") {
|
||||
if (surface.className == "maliit-server.desktop") {
|
||||
compositorRoot.currentWindow.child.height = compositorRoot.layers.windows.height - 500;
|
||||
} else {
|
||||
entry.window.child.takeFocus();
|
||||
}
|
||||
|
||||
|
|
@ -224,6 +226,9 @@ function unmapApplicationSurface(surface) {
|
|||
}
|
||||
|
||||
function unmapShellSurface(surface) {
|
||||
if (surface.className == "maliit-server.desktop") {
|
||||
compositorRoot.currentWindow.child.height = compositorRoot.layers.windows.height;
|
||||
}
|
||||
// Hide panel layer if this is the sliding panel
|
||||
if (surface.className == "plasmashell.desktop" || surface.className == "maliit-server.desktop") {
|
||||
compositorRoot.showPanel = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue