Skip to content

Commit

Permalink
fix(cursors): on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe authored Nov 26, 2024
1 parent 9b2424f commit e0c6e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bananas",
"version": "0.0.6",
"version": "0.0.7",
"description": "Bananas Screen Sharing is a simple and easy-to-use screen sharing tool for Mac, Windows, and Linux.",
"main": "./out/main/index.js",
"author": {
Expand Down
5 changes: 2 additions & 3 deletions src/main/ipcMainHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { BrowserWindow, ipcMain, screen } from 'electron'
import { createCursorsWindow } from './cursors'
import { settingsKeeper } from './stateKeeper'

let remoteCursorsWindow: BrowserWindow | null = null
let remoteCursorsActive = false

export const ipcMainHandlersInit = async (): Promise<void> => {
const availableDimensions = screen.getPrimaryDisplay().workAreaSize
let remoteCursorsWindow: BrowserWindow | null = null
let remoteCursorsActive = false
ipcMain.handle('toggleRemoteCursors', async (_, state) => {
remoteCursorsActive = state
if (!remoteCursorsWindow && remoteCursorsActive) {
Expand Down

0 comments on commit e0c6e14

Please sign in to comment.