Col-E / Recaf

The modern Java bytecode editor
https://recaf.coley.software
MIT License
6.06k stars 467 forks source link

Menu dropdown instantly closes on Hyprland/Wayland #873

Open Toshimichi0915 opened 2 weeks ago

Toshimichi0915 commented 2 weeks ago

Describe the bug

When I open a menu dropdown, the dropdown instantly closes and it's impossible to access menu items.

On Hyprland the window over the mouse cursor is automatically focused. I believe this behavior causes the main window to lose its focused state and therefore closes the dropdown.

To Reproduce

Steps to reproduce the behavior:

  1. Install Linux
  2. Install Hyprland
  3. Download the latest version of Recaf (4.0.0) from the GitHub.
  4. Execute the program.

Exception

(None)

Screenshots

https://github.com/user-attachments/assets/be7813e6-60ad-4bb1-a488-5f05d48cf128

Col-E commented 1 week ago

Your issue description says 4.X but the video shows 2.X

This is a known bug with JavaFX on some desktop environments. I've not tried reproducing on 4.X but it uses a newer version of JavaFX than 2.X does so it may have been fixed.

Old issues for this bug: