fix app title not updating when changing focus
This commit is contained in:
parent
2a96de6d27
commit
d0a6778004
1 changed files with 7 additions and 3 deletions
|
|
@ -48,9 +48,13 @@ M.BarSection {
|
|||
try {
|
||||
const ev = JSON.parse(line);
|
||||
if (ev.WindowFocusChanged !== undefined) {
|
||||
const w = ev.WindowFocusChanged.window;
|
||||
root._title = w ? (w.title || "") : "";
|
||||
root._appId = w ? (w.app_id || "") : "";
|
||||
// WindowFocusChanged only gives id, re-query for full info
|
||||
if (ev.WindowFocusChanged.id !== null)
|
||||
initProc.running = true;
|
||||
else {
|
||||
root._title = "";
|
||||
root._appId = "";
|
||||
}
|
||||
} else if (ev.WindowOpenedOrChanged !== undefined) {
|
||||
const w = ev.WindowOpenedOrChanged.window;
|
||||
if (w.is_focused) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue