Screen sharing: resizable tile stage, streams first, pop-out window

- The stage above the chat is as tall as the user drags it; tiles are sized to
  fill it, with a meeting-style look
- Tiles with a stream come first, at the top left
- The large picture can be moved to a separate window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 22:09:34 +02:00
co-authored by Claude Opus 5.5
parent 5a7f243c1d
commit 23833b1c8b
5 changed files with 151 additions and 33 deletions
+5 -1
View File
@@ -201,7 +201,11 @@ function createWindow() {
});
// Links from chat open in the system browser, never inside the app
win.webContents.setWindowOpenHandler(({ url }) => {
win.webContents.setWindowOpenHandler(({ url, frameName }) => {
// The stream window: an empty page the app fills with the video itself
if (frameName === 'mumh5-stream' && (url === 'about:blank' || url === '')) {
return { action: 'allow', overrideBrowserWindowOptions: { width: 960, height: 600, minWidth: 320, minHeight: 200, backgroundColor: '#000000', autoHideMenuBar: true, title: 'mumh5' } };
}
if (/^https?:\/\//i.test(url)) shell.openExternal(url);
return { action: 'deny' };
});