MCPcopy Create free account
hub / github.com/material-shell/material-shell / getWindowXID

Function getWindowXID

src/utils/windows.ts:48–53  ·  view source on GitHub ↗
(win: Meta.Window)

Source from the content-addressed store, hash-verified

46};
47
48export const getWindowXID = function (win: Meta.Window): string | null {
49 const desc = win.get_description() || '';
50 const match = desc.match(/0x[0-9a-f]+/);
51
52 return match !== null ? match[0] : null;
53};

Callers 1

setTitleBarVisibilityFunction · 0.85

Calls 2

get_descriptionMethod · 0.65
matchMethod · 0.65

Tested by

no test coverage detected