forked from Blendman974/faceclaw
Add screen-recording option
This commit is contained in:
1 parent
4c946631e0
commit
b738ce4bb2
12 files changed
+644
-99
No files matched your search
@@ -28,6 +28,15 @@ export type WorkerAppReply =
|
||||
type: "focus-window";
|
||||
windowId: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* Wake the glasses and focus one of the app's windows (e.g. a terminal
|
||||
* bell with wake-on-bell enabled). Ignored unless the screen is off, so
|
||||
* it can never steal focus from an in-use screen.
|
||||
*/
|
||||
type: "wake-window";
|
||||
windowId: string;
|
||||
}
|
||||
| {
|
||||
/** App-initiated window (e.g. a terminal view opened from the hub list). */
|
||||
type: "open-window-request";
|
||||
@@ -149,6 +158,14 @@ export class WorkerAppHost {
|
||||
this.options.requestShellRender();
|
||||
}
|
||||
break;
|
||||
case "wake-window":
|
||||
if (this.openWindows.has(message.windowId) && !shell.isScreenOn()) {
|
||||
// Focus first so wake's foreground-window refresh hits the target.
|
||||
shell.focusWindow(message.windowId);
|
||||
shell.wake("window");
|
||||
this.options.requestShellRender();
|
||||
}
|
||||
break;
|
||||
case "open-window-request":
|
||||
this.openWindow({
|
||||
windowId: message.windowId,
|
||||
|
||||
Reference in new issue
Block a user