launcher: fix windows mode

Forgot to implement no limit when < 0
This commit is contained in:
2 * r + 2 * t 2025-01-26 17:12:44 +11:00
parent 6460b71aee
commit fe930504a4

View file

@ -590,7 +590,7 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> })
if (entry.text) {
const clients = fuzzysort.go(entry.text, unsortedClients, {
all: true,
limit: config.windows.maxResults,
limit: config.windows.maxResults < 0 ? undefined : config.windows.maxResults,
keys: ["title", "class", "initialTitle", "initialClass"],
scoreFn: r =>
r[0].score * config.windows.weights.title +