Jabref: Menus from the menu bar close immediately after left click is let go of if the menu bar was clicked in its top half

Created on 25 Jan 2020  路  14Comments  路  Source: JabRef/jabref

JabRef 5.0-beta.362--2020-01-25--ac90ad2
Linux 5.4.13-3-manjaro amd64
Java 13.0.2

  • [x] I have built the latest master branch from source (commit ac90ad29b4302e0287f53af456bd1cb37521833a) and also observed this issue in the current beta release.

Steps to reproduce the behavior:

  1. Click on any item in the menu bar (File, Edit, Library, Quality, Tools, View, Options or Help), above the text line (anywhere in the orange area in the image below, colors were added by me to help explain the problem).
  2. Try to select anything from the submenu that opens.

Untitled

Expected behavior:

  • The corresponding submenu should stay open after clicking in its title.

Actual behavior:

  • If the user clicks the top half of the menu bar (orange area in the image), the submenu that opens closes immediately after the left mouse button is let go of. If you maintain the left mouse button pressed, the menu stays open, but nothing can be selected while the left mouse button stays pressed.
  • If the submenu is clicked in its bottom half (blue area in the image), everything works as expected.
linux depends-on-external ui

Most helpful comment

Can confirm that the problem still persisits in Manjaro Linux, i3 wm, seems to be related to i3 wm issue. The problem got solved when I switched to xfce4 wm, where the menus in the menu bar became clickable again.

All 14 comments

Perhaps this is the same but if you left click on a menu and try to scroll down to menu items they are not highlughted and cannot be selected. However, if you repeat the same
thing the second time the menu items become selectable.

I don't know if this is related, but when I open a menu from the menu bar, there is a gap between the menu bar and the menu. I don't know if that's the default behavior of the application, or if this is not supposed to happen.

Untitled

Can confirm that the problem still persisits in Manjaro Linux, i3 wm, seems to be related to i3 wm issue. The problem got solved when I switched to xfce4 wm, where the menus in the menu bar became clickable again.

If it is relevant, I also did my tests on a tiling window manager (bspwm), so it may be a problem on these kinds of WMs...

I am on KDE Plasma 5

Maybe this is related to this issue? #5526

I am not sure, as we are dealing with floating menus here and not dialog windows.

  • Currently, JabRef dialog windows behave as regular windows and take up half of the screen when they open, as is common in tiling window managers.
  • The floating menus keep their intended size. They just aren't interactive in some cases.

But maybe fixing #5526 also fixes this one, who knows.

I'm also experiencing this under i3wm.

Having the same issue in i3wm.

Having the same issue in i3wm also

same issue with i3wm

I searched around and it seems to be an issue in the javafx version 14:
https://bugs.openjdk.java.net/browse/JDK-8251240

Based on the javafx issue cited above, running with environment variable GDK_DISPLAY=1 fixes this issue under XMonad (another tiling window manager).

Based on the javafx issue cited above, running with environment variable GDK_DISPLAY=1 fixes this issue under XMonad (another tiling window manager).

This seemed to work yesterday, but I cannot replicate the workaround today. Not sure what changed, please disregard.

However, here is another workaround that seems to work and might help diagnose the issue. Click and hold on menu (e.g. "file"), drag cursor out of JabRef window (e.g., into neighbouring tiled window, status bar, etc.). Release and menu stays open.

Alt then cursor keys also work for navigating the menus, but this is not a fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

humbleambition picture humbleambition  路  3Comments

lenhard picture lenhard  路  4Comments

tobiasdiez picture tobiasdiez  路  4Comments

Siedlerchr picture Siedlerchr  路  3Comments

simonharrer picture simonharrer  路  3Comments