Map windows to realms by calling realmsd pid lookup method

This commit is contained in:
2022-09-19 10:13:41 -04:00
parent b5d28b2e9a
commit a5e83b2d55
13 changed files with 427 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})`;