Skip to content

Commit c1ee5b9

Browse files
skymenArmaldio
authored andcommitted
fixed Win11 phantom Alt Tabs + fullscreen fix + set mouse events support (#65)
* fix: properly cleanup resources on macOS quit to prevent hanging * added save screenshot handler * fixed screenshot code, there needs to be a little delay before deleting the file otherwise steam fails to copy it * WIP trying to fix window bug * WIP * Made the implementation I had much simpler * removed unneeded change * reverted some changes * disabled disable-direct-composition and enabled fullscreenable * Added support for set ignore mouse events
1 parent fc77c27 commit c1ee5b9

2 files changed

Lines changed: 577 additions & 508 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @param {Object} json
3+
* @param {string} json.correlationId
4+
* @param {string} json.url
5+
* @param {{ ignore: boolean, forward?: boolean }} json.body
6+
* @param {import('ws').WebSocket} ws
7+
* @param {import('electron').BrowserWindow} mainWindow
8+
*/
9+
export default async (json, ws, mainWindow) => {
10+
const { ignore, forward } = json.body
11+
12+
mainWindow.setIgnoreMouseEvents(ignore, { forward })
13+
14+
const result = {
15+
correlationId: json.correlationId,
16+
url: json.url,
17+
body: {
18+
success: true
19+
}
20+
}
21+
ws.send(JSON.stringify(result))
22+
}

0 commit comments

Comments
 (0)