never give focus to maliit

This commit is contained in:
Marco Martin 2014-12-10 15:12:01 +01:00
parent 57d0ef8469
commit cde5490997

View file

@ -170,7 +170,9 @@ function mapShellSurface(surface, child) {
} else { } else {
compositorRoot.state = "homeScreen"; compositorRoot.state = "homeScreen";
} }
entry.window.child.takeFocus(); if (surface.className != "maliit-server.desktop") {
entry.window.child.takeFocus();
}
return; return;
} }
@ -200,7 +202,9 @@ function mapShellSurface(surface, child) {
} else { } else {
compositorRoot.state = "homeScreen"; compositorRoot.state = "homeScreen";
} }
window.child.takeFocus(); if (surface.className != "maliit-server.desktop") {
window.child.takeFocus();
}
// Add surface to the model // Add surface to the model
surfaceModel.append({"surface": surface, "window": window}); surfaceModel.append({"surface": surface, "window": window});