-
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
Clicking outside of Surge XT window with open menus can lead to undefined mouse focus behavior #5692
Comments
Cannot confirm on Windows, at least. My guess is this is probably somewhere deep in JUCE itself, so probably not much we can do about it, but @baconpaul will most certainly have some more thoughts. |
Those were exactly my thoughts (along with being appreciative for the detailed bug report) but I am yet to look |
I can confirm the above with a Cinamon desktop and slightly different behaviour with the default Ubuntu20 desktop, (EDIT: it's the same in ubuntu) Same also happens with b-step ('options' is the only popup there) While on cinamon I played with some conditionals in juce's PopupMenu.cpp So no solution yet but something somewhere here: |
If I add to
then the reported problem is gone while patch selection still works. |
Oh excellent Shall I post up on the juce forum? Or would you like to? I'm sure they would merge this or something very close to it! |
I don't have an account in their forum, so if you could tell them would be great. |
juce-framework/JUCE@f5d2642 |
Oh cool I merged the surge branch change just now. Thanks! |
- includes latest cherrypick from develop - fix a broken link in readme closes surge-synthesizer#5692
- includes latest cherrypick from develop - fix a broken link in readme closes #5692
Bug Description:
Using the Cinnamon 5.0.7 desktop on Manjaro Linux, after respectively left- or right-clicking on the Surge XT patch browser rectangle or another component that can open a menu, then clicking outside the focus of the Surge XT window instead of clicking on a menu item or pressing ESC, the mouse pointer will show undefined behavior either regarding pointing mode or visibility.
Surge Version
Two versions are tested: standalone and VST3
Standalone
Version: Surge XT 0.99.main.c01a819f
Build: 2021-12-30 @ 12:35:57 on 'elbereth/local' with 'GNU-11.1.0' using JUCE 6.1.2
System: Linux 64-bit Standalone on AMD Ryzen 7 1700 Eight-Core Processor
Sample Rate: 48.0 kHz
VST3
Version: Surge XT 0.99.main.c01a819f
Build: 2021-12-30 @ 12:35:57 on 'elbereth/local' with 'GNU-11.1.0' using JUCE 6.1.2
System: Linux 64-bit VST3 on AMD Ryzen 7 1700 Eight-Core Processor
Sample Rate: 48.0 kHz
Reproduction Steps:
Steps to reproduce the behavior:
Standalone: Clicking on Patch Browser, then desktop
Standalone: Clicking on Patch Browser, then app window
Standalone: Right-clicking on UI menu, then desktop
Standalone: Right-clicking on UI menu, then app window
VST3: Left-clicking on Patch Browser, then desktop
Otherwise, in the VST3, right-clicking on the patch browser, then desktop; clicking on the patch browser, then an app window; and right-clicking on a UI menu, then an app window all produce the expected behavior, regardless of whether the pointer transects the desktop or not.
Expected Behavior:
One would expect that the mode of the mouse pointer would not change, only the focus, and the menus, etc., would just close. One would click back on to the UI without any additional interactions.
Computer Information:
Linux elbereth 5.10.84-1-MANJARO #1 SMP PREEMPT Wed Dec 8 09:50:30 UTC 2021 x86_64 GNU/Linux
Additional Information:
I use the following script to update the standalone modules, then update the VST3 folders manually:
#!/bin/bash
cd ~/git_repos/surge
git pull -p
git submodule update --init --recursive
#cmake -Bbuild
#cmake --build build --config Release --target surge-staged-assets
cmake -Bignore/sxt -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/charles/.local
cmake --build ignore/sxt --config Release --parallel 8
cmake --install ignore/sxt
The text was updated successfully, but these errors were encountered: