Skip to content
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

Missing right-click context menu in editor on secondary displays #11174

Closed
2 tasks done
pcdi opened this issue Apr 9, 2024 · 5 comments · Fixed by #11324
Closed
2 tasks done

Missing right-click context menu in editor on secondary displays #11174

pcdi opened this issue Apr 9, 2024 · 5 comments · Fixed by #11324

Comments

@pcdi
Copy link

pcdi commented Apr 9, 2024

JabRef version

Latest development branch build (please note build date below)

Operating system

macOS

Details on version and operating system

macOS Sonoma 14.4.1 (23E224) / JabRef 5.14--2024-04-09--beb6ece

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

JabRef 5.14--2024-04-09--beb6ece
Mac OS X 14.4.1 aarch64 
Java 21.0.2 
JavaFX 22+30
  1. Open the entry editor
  2. Right-click into an entry field
  3. No context menu shows. Previously, a context menu was available, showing "normalize to BibTeX name format" in author/editor fields or different capitalization options for title fields.

Appendix

No response

@Siedlerchr
Copy link
Member

Siedlerchr commented Apr 9, 2024

Just upgraded to macOS 14.4.1 and cannot reproduce with 5.13 release
Did you install the arm64 variant?

JabRef 5.14 from today also works fine on 14.4.1. context menus is present as always

@Siedlerchr Siedlerchr added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Apr 9, 2024
@pcdi
Copy link
Author

pcdi commented Apr 10, 2024

After checking again, I found that the problem is apparently related to multiple displays: It occurs only if the JabRef window is not on the main display (as per macOS's display settings).

If the JabRef window is moved to a screen that is set to "extend desktop", then no context menu is shown. If the same JabRef window is moved to the "main display", however, then the context menu shows normally.

I tested with the dev version mentioned above as well as with

JabRef 5.13--2024-04-01--6bdcf63
Mac OS X 14.4.1 aarch64 
Java 21.0.2 
JavaFX 22+30

Both are arm64 (aarch64) variants.

On a right click on a secondary display, I can see the edge of the context menu flashing on the edge of said secondary display, so it seems that the menu is instantiated at some coordinates on the very edge of the primary screen, but as the window is on the second screen, it is not actually shown on the primary screen. Because the position on which it is instantiated lays outside of the second screen, however, it is not shown on the second screen either, so it is not shown at all.

@pcdi pcdi changed the title Missing right-click context menu in editor Missing right-click context menu in editor on secondary displays Apr 10, 2024
@koppor koppor removed the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Apr 11, 2024
@koppor
Copy link
Member

koppor commented May 15, 2024

I have issues with the main menus. They are positioned off the menu bar:

grafik

I can get it to work if I resize JabRef:

grafik

Reproduce:

  1. Windows 10
  2. Have FancyZones (PowerToys) active
  3. Have two monitors
  4. Have 150% scale on monitor 1
  5. Have 100% scale on monitor 2
  6. Start JabRef. Move it to monitor 2.
  7. Move JabRef Window to monitor 1 using drag and drop. Let FancyZones highlight the area. Pay attention that the window does not resize to 150% zoom while dragging
  8. Drop
  9. See 100% scaling kept for the window and the menus being off screen.

Workaround: Maximize JabRef and then drop it into the Zone of monitor 1. It keeps 150% scaling.

@koppor
Copy link
Member

koppor commented May 16, 2024

Related: #10729

@Siedlerchr
Copy link
Member

@pcdi I was finally able to reproduce it and provide a fix. Can you test this version?
https://builds.jabref.org/pull/11324/merge
Note that the build is not notarized (we only do this for releases) so you need to allow it to start in the security settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants