add debug logging to track window title visibility issue
This commit is contained in:
parent
d8cef95b6f
commit
f225d34202
2 changed files with 7 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ QtObject {
|
|||
command: ["niri", "msg", "--json", "focused-window"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
console.log("NiriIpc._focusedProc raw='" + text.slice(0, 80) + "'");
|
||||
try {
|
||||
const w = JSON.parse(text);
|
||||
if (w) {
|
||||
|
|
@ -31,7 +32,10 @@ QtObject {
|
|||
root.focusedTitle = "";
|
||||
root.focusedAppId = "";
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
console.log("NiriIpc._focusedProc parse error: " + e);
|
||||
}
|
||||
console.log("NiriIpc focusedTitle='" + root.focusedTitle + "'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue