Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f0043cd23 | ||
|
|
032035b7f1 |
2 changed files with 20 additions and 2 deletions
|
|
@ -139,14 +139,26 @@ WlSessionLockSurface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keyboard input - focus lives on an Item since WlSessionLockSurface is a window
|
// Keyboard input - focus lives on an Item since WlSessionLockSurface is a window.
|
||||||
|
// Aggressively reclaim focus: Component.onCompleted may fire before the surface
|
||||||
|
// is configured, and other items can steal activeFocus during layout.
|
||||||
Item {
|
Item {
|
||||||
|
id: _keyInput
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
focus: true
|
focus: true
|
||||||
Keys.onPressed: event => {
|
Keys.onPressed: event => {
|
||||||
if (!root._unlocking)
|
if (!root._unlocking)
|
||||||
root.auth.handleKey(event);
|
root.auth.handleKey(event);
|
||||||
}
|
}
|
||||||
|
onActiveFocusChanged: {
|
||||||
|
if (!activeFocus)
|
||||||
|
forceActiveFocus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (visible)
|
||||||
|
_keyInput.forceActiveFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unlock animation
|
// Unlock animation
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
quickshell,
|
quickshell,
|
||||||
qt6,
|
qt6,
|
||||||
nova-stats,
|
nova-stats,
|
||||||
|
glib,
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "nova-shell";
|
pname = "nova-shell";
|
||||||
|
|
@ -34,7 +35,12 @@ stdenvNoCC.mkDerivation {
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${lib.getExe quickshell} $out/bin/nova-shell \
|
makeWrapper ${lib.getExe quickshell} $out/bin/nova-shell \
|
||||||
--add-flags "-p $out/share/nova-shell/shell.qml" \
|
--add-flags "-p $out/share/nova-shell/shell.qml" \
|
||||||
--prefix PATH : ${lib.makeBinPath [ nova-stats ]}
|
--prefix PATH : ${
|
||||||
|
lib.makeBinPath [
|
||||||
|
nova-stats
|
||||||
|
glib
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Reference in a new issue