MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / pointerInBottomStrip

Function pointerInBottomStrip

packages/config/src/index.tsx:162–184  ·  view source on GitHub ↗
(
  monitor: string,
  pointerX: number,
  pointerY: number,
  stripPx: number,
)

Source from the content-addressed store, hash-verified

160 }
161 lastWorkspacesJson = json;
162 WORKSPACE_IPC.broadcast("workspaces.changed", view);
163}
164
165function reconfigureProtocolWorkspaces() {
166 COMPOSITOR.workspace.reconfigure();
167}
168
169// Coalesce many state mutations within one tick into a single diffed broadcast.
170function scheduleWorkspaceBroadcast() {
171 // Protocol state must be staged before the current runtime response is
172 // written; otherwise key bindings/Waybar activations only reach external
173 // bars on a later, unrelated runtime request.
174 reconfigureProtocolWorkspaces();
175 if (workspaceBroadcastQueued) {
176 return;
177 }
178 workspaceBroadcastQueued = true;
179 void Promise.resolve().then(() => {
180 workspaceBroadcastQueued = false;
181 broadcastWorkspaces();
182 });
183}
184
185// Workspaces a bar asked to create (by number). The view lists only
186// workspaces with windows plus the active one, so these are listed as well
187// until they show up there on their own.

Callers 1

nextDockProximityFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected