osxmidi / LinVst

Linux Windows vst wrapper/bridge
GNU General Public License v3.0
674 stars 41 forks source link

Sonic Academy's Kick 2 cursor disappears #150

Closed sidequestboy closed 3 years ago

sidequestboy commented 4 years ago

When I use Kick 2 as a VST plugin through Bitwig Studio, and use certain controls, the mouse cursor inside the wine window will disappear until it's moved outside the window.

In particular, the "<" ">" buttons for Click 1 make the cursor reliably disappear. (here's a screenshot with the cursor on top of those buttons.)

2020-04-28-235410_1920x1080_scrot

wine-5.7 (Staging), arch linux, linvst stable 2.8.1, bitwig studio 3.1.3

osxmidi commented 4 years ago

It might be due to the focus that enables keyboard input.

A possible fix is at https://github.com/osxmidi/LinVst/tree/master/Remove-Focus

keybreak commented 4 years ago

@jameh May i ask how you get it to launch though? Crash on start for me

sidequestboy commented 4 years ago

@keybreak I have quite a few dll overrides in my winecfg, but cross-referencing with strings "Kick 2 x64.dll" | grep .dll, I have:

d2d1 (native)
*wininet (builtin)
*gdiplus (native)
sidequestboy commented 4 years ago

@osxmidi I'm having trouble building my .so files correctly with Remove-Focus/Makefile.

make --file Remove-Focus/Makefile
./convert/convert-cli --input ../windows-vst --clean
./convert/convert-cli --input ../windows-vst --dll ./linvst.so

Compilation works without errors, and my .so vsts are placed next to their .dll equivalents who are all 64bit. But, the vsts aren't detected in Bitwig, and it gives errors when trying to load them.

Am I doing this right?

sidequestboy commented 4 years ago

It seems I needed to run sudo make install to put the new server files in place, now they launch, but I don't notice any change in behaviour from before. Is the Remove-Focus Makefile meant to keep the keyboard focus on the DAW? because I don't experience that

osxmidi commented 4 years ago

It seems I needed to run sudo make install to put the new server files in place, now they launch, but I don't notice any change in behaviour from before. Is the Remove-Focus Makefile meant to keep the keyboard focus on the DAW? because I don't experience that

The remove focus version lets Wine handle the window focus and then keyboard input is lost. The mouse is connected to the window focus, when the mouse is clicked on a window, then the window gets the focus..

If the Remove Focus version didn't help then it's a Wine issue, maybe a d2d1 issue or some other dll.

Overriding or not overriding some dlls might help.