fix: address fullscreen and n-plus-one review notes

This commit is contained in:
2026-04-26 19:34:31 -07:00
parent ab41837d3d
commit c150fce782
3 changed files with 11 additions and 4 deletions

View File

@@ -353,8 +353,12 @@ export class HyprlandWindowTracker extends BaseWindowTracker {
return null;
}
const output = execSync('hyprctl -j monitors', { encoding: 'utf-8' });
return parseHyprctlMonitors(output);
try {
const output = execSync('hyprctl -j monitors', { encoding: 'utf-8' });
return parseHyprctlMonitors(output);
} catch {
return null;
}
}
private getWindowCommandLine(pid: number): string | null {