Map windows to realms by calling realmsd pid lookup method

This commit is contained in:
2022-09-19 10:13:41 -04:00
parent a59498b198
commit ac472d0373
13 changed files with 426 additions and 229 deletions

View File

@ -17,10 +17,11 @@ function _windowAppId(window) {
function windowMenuDebugString(window) {
const id = _windowAppId(window);
const realm_name = windowRealmName(window);
const realms = Shell.Realms.get_default();
if (!realm_name) {
return id;
} else if (window.is_on_foreign_workspace_context()) {
} else if (realms.is_foreign_window(window)) {
return `${id} [${realm_name}]`;
} else {
return `${id} (${realm_name})`;