surge-synthesizer / surge

Synthesizer plug-in (previously released as Vember Audio Surge)
https://surge-synthesizer.github.io/
GNU General Public License v3.0
3.14k stars 400 forks source link

Context Menus dont show on Gentoo/Wayland/Ardour system #7663

Open squeaktoy opened 5 months ago

squeaktoy commented 5 months ago

Bug Description: Any context menu doesn't show up / is invisible.

Surge XT Version 1.3.2

Reproduction Steps: Steps to reproduce the behavior:

  1. Use Wayland (Hyprland in my case)
  2. Open Ardour
  3. Insert a track with Surge XT LV2 or VST3
  4. Open Surge XT
  5. Click on anything that would open a context menu.

Expected Behavior: A context menu should appear.

Computer Information (please complete the following!):

mkruselj commented 5 months ago

Most likely a Wayland+Ardour issue, I bet the context menu opens behind the main window, or something like that.

tkna91 commented 2 months ago

The same is true in my Arch Linux/sway/Renoise/REAPER environment. If it doesn't occur in GNOME wayland, etc., it may have something to do with wlroots.

https://github.com/user-attachments/assets/8a0f2030-dd9d-4e9a-8ada-a1f04ce4823c

$ pacman -Q surge-xt-vst3 renoise reaper sway-git wlroots-git linux mesa
surge-xt-vst3 1.3.4-1
renoise 3.4.4-1
reaper 7.20-1
sway-git 1.10.r7394.c30c451-1
wlroots-git 0.19.0.r7199.e88988e3-1
linux 6.10.5.arch1-1
mesa 1:24.1.6-1
$
baconpaul commented 2 months ago

what is wlroots?

anyway i just tested on ubuntu 24 stock install and menus showed up no problem in the standalone.

tkna91 commented 2 months ago

wlroots is the backend system for the Wayland compositor used by sway and past hyprland (before this merge). https://github.com/hyprwm/Hyprland/pull/6608

https://gitlab.freedesktop.org/wlroots/wlroots

I could be totally wrong, but I was guessing that if this event does not occur in GNOME Wayland, then the common denominator might be the wlroots based Wayland compositor.

tkna91 commented 2 months ago

This does not seem to occur in my environment Ardour above.

$ pacman -Q ardour
ardour 8.6-1
$

https://github.com/user-attachments/assets/78c47a0f-73ca-4b77-b5e1-73e802c9e871

mkruselj commented 1 month ago

I am not sure if there is anything that can be done on our side to fix this. Seems like it's down to the compositor?

baconpaul commented 1 month ago

yeah i don't know what if anything we would do here.

wonder if juce 8 fixes it? We did just move.

squeaktoy commented 1 month ago

It's not always reproducible. Sometimes the context menus show, other times they do not. Since Hyprland switched to their own backend and dropped wlroots, I've had a bit more luck with getting context menus to show. However, it still often happens that context menus prematurely close on themselves when the cursor exits them, or even while trying to left click on a context menu item, not registering the click so I need to use enter instead.

mkruselj commented 1 month ago

Hmmm. I still think there is nothing we can do regarding this. Can you confirm this happening on the same system with other JUCE based plugins? If so this issue should be opened with JUCE, not us.

If you could also try the very latest nightly of Surge XT, we have moved to JUCE 8.0.2.

baconpaul commented 1 month ago

I'm fine to leave the issue open and tagged as "not being worked on" though so if other people experience it they can find this