-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard presses not registered properly in preset saving menu on REAPER/Ardour VST/VST3/LV2 in Linux #1104
Comments
There’s a reaper “send keyboard to plugin” option. This may be related to #984 |
Ahh yes that issue. the way plugins work with the keyboard/mouse seems really different functionally in Linux than windows and or Mac OS. I should try and find some more Linux vsts to test |
interesting.... I have a copy of "Redux" the VST sampler made by the Renoise team... that has a linux VST. I know u-he has linux versions of everything. Anything else anybody know about??? |
Other: when I switch between different keyboard layouts while the editor is run, I then meet a problem like described, where I can't edit any longer. |
Just tested this again. And updated the name of this issue. So I'm using Ardour 5.12 from the repository now (not the demo)...and for some reason it has different behavior. I've tried changing keyboard layouts, and it doesn't seem to effect anything.... To reiterate this is effecting LV2 VST and VST3 on Ardour and REAPER on my system. |
oh ok, narrowed this down a bit I installed fluxbox and tried to run ardour. So is the issue an incompatibility with the window manager... or something else. I'll see if I can narrow it down more. |
so yeah, lxqt still uses openbox as window manager just like regular lxde. Can anyone reproduce these preset saving menu issues using openbox, or a desktop environment like LXDE that relies on openbox? |
I don't have an environment to do that; sorry. But great debugging! |
I am going to try myself, in any case I found these which may give information. From the page http://www.vinc17.net/unix/xkb.en.html
|
It's reproducible, and it seems really like a focus issue, possibly specific to this window manager. Looking at the situation from the OP screenshot of Reaper, this experiment can be made:
As noted also previously, it's possible somehow get focus into surge by insisting on the text field. |
This is way beyond my depth at this point. Do you think surge is mis-managing focus or do you think the window manager is? I wonder if there’s a vstgui ‘gain focus’ api we could call. Honestly I would just have to grep for that. I also wonder if, in the broken configuration, the +/- keys (to zoom and in zoom) register or not. |
The Regardless of configuration, the |
I investigated the problem that when clicking the text field, the mouse is not set in correct position; When you click a point, the actual location which is taken by the cursor text edit is offset to the right, by approximately the half widget width. The code following is found under vstgui as this location.
When I take the relative point of click from About About What do you think about it, @baconpaul? |
It was still offset when I forced the text edit to left aligned though.... argh |
This patch appears to make text cursor follow the mouse click correctly. (LV2, at least) |
It's not perfect on Openbox however it is MUCH better.
|
Oh I wonder if this is another example of translate to local being backwards. A lot of the fixes I had to apply to VSTGUI were about transformations being done the wrong way. It would make sense though that this would happen in reaper where the parent isn't positioned at (0,0) (unlike every other DAW). I need to think about this diff some though - and also think about the risk of adding it this late in the 1.6.2 process. I have a busy couple of non-surge days so I won't get a great chance to test it or look until the weekend, I'm sorry! |
Oh the good news about this patch, though, is just like the generic menu, this code path is linux only so our testing aperture goes way down (just from looking more this morning). |
@jpcima I also tested your diff and agree with it. Merging it this evening and will then close this issue. Thanks for the fix. |
Describe the bug
Tested in REAPER, RENOISE and Ardour.
When you "store" a preset in Surge in REAPER on VST on Linux.
You get the normal menu, but when text is highlighted, (it's highlighted red below, not sure if that is the normal colour) the keyboard entry does not pass to the plugin. If you kinda click on just the right place in the text box the text will become un-highlighted and you can type or delete or move around with arrow keys.
If you tab to the next entry, or click on another text entry it will be highlighted red again and you have to click around the text box to try and find a sweet spot. So it's very hard to save a preset.
This issue happens in REAPER and Ardour.
but NOT in Carla or Renoise
SYSTEM INFO
The latest nightly of Surge, first version of Surge to include LV2
I'm on the latest lubuntu 19.04 a lightweight Ubuntu distro.
UNAME printout:
5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64 GNU/Linux
Latest stable Ardour, REAPER, RENOISE and Carla
If if can provide any more specific info am happy to do so!
The text was updated successfully, but these errors were encountered: