Skip to content

Commit e0c6e14

Browse files
authored
fix(cursors): on windows
1 parent 9b2424f commit e0c6e14

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bananas",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Bananas Screen Sharing is a simple and easy-to-use screen sharing tool for Mac, Windows, and Linux.",
55
"main": "./out/main/index.js",
66
"author": {

src/main/ipcMainHandlers.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { BrowserWindow, ipcMain, screen } from 'electron'
33
import { createCursorsWindow } from './cursors'
44
import { settingsKeeper } from './stateKeeper'
55

6-
let remoteCursorsWindow: BrowserWindow | null = null
7-
let remoteCursorsActive = false
8-
96
export const ipcMainHandlersInit = async (): Promise<void> => {
107
const availableDimensions = screen.getPrimaryDisplay().workAreaSize
8+
let remoteCursorsWindow: BrowserWindow | null = null
9+
let remoteCursorsActive = false
1110
ipcMain.handle('toggleRemoteCursors', async (_, state) => {
1211
remoteCursorsActive = state
1312
if (!remoteCursorsWindow && remoteCursorsActive) {

0 commit comments

Comments
 (0)