crossover icon indicating copy to clipboard operation
crossover copied to clipboard

i cant remove the backround

Open hihibro10 opened this issue 1 year ago • 9 comments

hello i need help if i tap ,,cntl , alt , shift and x " it dont work to remove the backround

hihibro10 avatar Jan 07 '25 19:01 hihibro10

Possible duplicate of #384?

I'm seeing this too occasionally (on Windows).

pbogdan avatar Jan 09 '25 15:01 pbogdan

Are you running any other programs that could potentially be using the same keyboard shortcut? Could you try sending a different keyboard shortcut?

lacymorrow avatar Jan 10 '25 19:01 lacymorrow

I don't think for me the issue is with a conflicting shortcut. I haven't tested this extensively but it seems that the issue occurs after whenever I open the settings (bottom right cog icon on the overlay). So for example when I first start the app the shortcut works fine and I can keep toggling the background on/off. As soon as I open the settings and close them the shortcut stops working.

pbogdan avatar Jan 10 '25 19:01 pbogdan

Hands-down, best bug report I've had all year!

I disable certain keyboard shortcuts when the settings window is open, there's a good chance they aren't getting reset properly

lacymorrow avatar Jan 10 '25 19:01 lacymorrow

Thanks!

BTW I don't know if it's relevant but running with --debug show the following errors:

  • upon opening the settings dialog

    TypeError: windows.preferencesWindow.webContents.setWindowOpenHandler is not a function
    at Object.openSettingsWindow 
    (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\crossover.js:532:41)
    at IpcMainImpl.<anonymous> 
    (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\ipc.js:77:13)
    at IpcMainImpl.emit (events.js:315:20)
    at Object.<anonymous> (electron/js2c/browser_init.js:157:9051)
    at Object.emit (events.js:315:20)
    
  • once the settings window has been closed invoking the shortcut produces the following:

    TypeError: Object has been destroyed
    at Object.hideSettingsWindow (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\windows.js:335:62)
    at lockWindow (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\crossover.js:209:10)
    at Object.<anonymous> (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\crossover.js:577:25)
    at Object.each (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\windows.js:54:5)
    at Object.toggleWindowLock (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\crossover.js:577:10)
    at Function.fn (C:\Users\ppbog\AppData\Local\Programs\crossover\resources\app.asar\src\main\crossover.js:48:15)
    

pbogdan avatar Jan 10 '25 19:01 pbogdan

oh yeah, that helps a ton, that is a direct error from electron. In windows, closing the settings window destroys the browser window object, and I have to re-create it on the fly. This error displays because I'm trying to hide a browser window that doesn't exist.

Thanks dude, that really makes my life a little easier.

lacymorrow avatar Jan 10 '25 19:01 lacymorrow

You are welcome, glad I could help :-).

pbogdan avatar Jan 10 '25 19:01 pbogdan

Had the same problem. Exiting and reopening CrossOver temporarily solved it.

ranni-follower avatar Mar 25 '25 03:03 ranni-follower

@openhands-agent Can you fix the errors causing users to unable to lock/unlock the crosshair?

lacymorrow avatar Jun 05 '25 21:06 lacymorrow